chore: fix linter warnings
This commit is contained in:
@@ -40,7 +40,8 @@ class MyApp extends StatelessWidget {
|
||||
streamChatThemeData:
|
||||
StreamChatThemeData.fromTheme(Theme.of(context)).copyWith(
|
||||
ownMessageTheme: MessageThemeData(
|
||||
messageBackgroundColor: Theme.of(context).accentColor,
|
||||
messageBackgroundColor:
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
messageTextStyle: TextStyle(color: Colors.white),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -214,7 +214,6 @@ class MyChannelPreview extends StatelessWidget {
|
||||
],
|
||||
);
|
||||
}
|
||||
// TODO
|
||||
return TypingIndicator(
|
||||
channel: channel,
|
||||
alternativeWidget: _buildLastMessage(context),
|
||||
|
||||
@@ -5,7 +5,7 @@ import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||
class ChatView extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final textColor = Theme.of(context).appBarTheme.color;
|
||||
final textColor = Theme.of(context).appBarTheme.backgroundColor;
|
||||
return Scaffold(
|
||||
backgroundColor: Theme.of(context).canvasColor,
|
||||
appBar: AppBar(
|
||||
|
||||
@@ -25,8 +25,8 @@ class FriendsSelectionView extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final textColor = Theme.of(context).appBarTheme.color;
|
||||
final accentColor = Theme.of(context).accentColor;
|
||||
final textColor = Theme.of(context).appBarTheme.backgroundColor;
|
||||
final accentColor = Theme.of(context).colorScheme.secondary;
|
||||
return MultiBlocProvider(
|
||||
providers: [
|
||||
BlocProvider(
|
||||
|
||||
@@ -48,7 +48,7 @@ class GroupSelectionView extends StatelessWidget {
|
||||
'New Group',
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
color: Theme.of(context).appBarTheme.color,
|
||||
color: Theme.of(context).appBarTheme.backgroundColor,
|
||||
fontWeight: FontWeight.w800,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -44,7 +44,6 @@ class SettingsView extends StatelessWidget {
|
||||
child: Column(
|
||||
children: [
|
||||
AvatarImageView(
|
||||
//TODO: implement change avatar
|
||||
onTap: () => null,
|
||||
child: image != null
|
||||
? Image.network(
|
||||
|
||||
@@ -82,7 +82,7 @@ class ProfileVerifyView extends StatelessWidget {
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
color: Theme.of(context).accentColor,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
context.read<ProfileVerifyCubit>().startChatting();
|
||||
|
||||
@@ -10,7 +10,8 @@ class Themes {
|
||||
static final themeLight = ThemeData.light().copyWith(
|
||||
backgroundColor: backgroundLightColor,
|
||||
// selected color
|
||||
accentColor: primaryColor,
|
||||
colorScheme:
|
||||
ThemeData.light().colorScheme.copyWith(secondary: primaryColor),
|
||||
// floating action button
|
||||
floatingActionButtonTheme: FloatingActionButtonThemeData(
|
||||
backgroundColor: primaryColor,
|
||||
@@ -32,7 +33,8 @@ class Themes {
|
||||
static final themeDark = ThemeData.dark().copyWith(
|
||||
backgroundColor: backgroundDarkColor,
|
||||
// selected color
|
||||
accentColor: primaryColor,
|
||||
colorScheme:
|
||||
ThemeData.dark().colorScheme.copyWith(secondary: primaryColor),
|
||||
// floating action button
|
||||
floatingActionButtonTheme: FloatingActionButtonThemeData(
|
||||
backgroundColor: primaryColor,
|
||||
|
||||
@@ -11,14 +11,14 @@ dependencies:
|
||||
sdk: flutter
|
||||
|
||||
flutter_bloc: ^7.1.0
|
||||
stream_chat_flutter: ^3.0.0
|
||||
stream_chat_flutter: ^2.0.0
|
||||
uuid: ^3.0.5
|
||||
|
||||
firebase_core: ^1.7.0
|
||||
google_sign_in: ^5.1.1
|
||||
firebase_auth: ^3.1.2
|
||||
firebase_storage: ^10.0.4
|
||||
shared_preferences: ^2.0.8
|
||||
firebase_core: ^1.2.0
|
||||
google_sign_in: ^5.0.3
|
||||
firebase_auth: ^1.2.0
|
||||
firebase_storage: ^8.1.0
|
||||
shared_preferences: ^2.0.5
|
||||
http: any
|
||||
collection: ^1.15.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user