From e8afb3e9a9858ff9f373b497d040498e099e38c7 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Wed, 30 Dec 2020 14:00:42 +0530 Subject: [PATCH] Removed type --- lib/src/stream_chat_theme.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/src/stream_chat_theme.dart b/lib/src/stream_chat_theme.dart index 5e6a0398..2b6a74ae 100644 --- a/lib/src/stream_chat_theme.dart +++ b/lib/src/stream_chat_theme.dart @@ -401,7 +401,6 @@ enum TextThemeType { } class TextTheme { - final TextThemeType type; final TextStyle title; final TextStyle headlineBold; final TextStyle headline; @@ -412,7 +411,6 @@ class TextTheme { final TextStyle captionBold; TextTheme.light({ - this.type = TextThemeType.light, this.title = const TextStyle( fontSize: 22, fontWeight: FontWeight.bold, @@ -447,7 +445,6 @@ class TextTheme { }); TextTheme.dark({ - this.type = TextThemeType.dark, this.title = const TextStyle( fontSize: 22, fontWeight: FontWeight.bold, @@ -490,6 +487,7 @@ class TextTheme { }); TextTheme copyWith({ + TextThemeType type = TextThemeType.light, TextStyle body, TextStyle title, TextStyle headlineBold,