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