chore(repo): run dart fix

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-10-01 16:45:18 +05:30
committed by xsahil03x
parent f7db4b1071
commit 2157340784
6 changed files with 25 additions and 10 deletions
@@ -39,9 +39,19 @@ class ColorTheme {
alpha: 0.08, alpha: 0.08,
), ),
this.shadowIconButton = const Effect( this.shadowIconButton = const Effect(
sigmaX: 0, sigmaY: 2, color: Color(0xff000000), alpha: 0.5, blur: 4,), sigmaX: 0,
sigmaY: 2,
color: Color(0xff000000),
alpha: 0.5,
blur: 4,
),
this.modalShadow = const Effect( this.modalShadow = const Effect(
sigmaX: 0, sigmaY: 0, color: Color(0xff000000), alpha: 1, blur: 8,), sigmaX: 0,
sigmaY: 0,
color: Color(0xff000000),
alpha: 1,
blur: 8,
),
}) : brightness = Brightness.light; }) : brightness = Brightness.light;
/// Initialise with dark theme /// Initialise with dark theme
@@ -100,7 +100,10 @@ class MessageThemeData with Diagnosticable {
messageTextStyle: messageTextStyle:
TextStyle.lerp(a.messageTextStyle, b.messageTextStyle, t), TextStyle.lerp(a.messageTextStyle, b.messageTextStyle, t),
reactionsBackgroundColor: Color.lerp( reactionsBackgroundColor: Color.lerp(
a.reactionsBackgroundColor, b.reactionsBackgroundColor, t,), a.reactionsBackgroundColor,
b.reactionsBackgroundColor,
t,
),
reactionsBorderColor: reactionsBorderColor:
Color.lerp(a.messageBorderColor, b.reactionsBorderColor, t), Color.lerp(a.messageBorderColor, b.reactionsBorderColor, t),
reactionsMaskColor: reactionsMaskColor:
@@ -92,7 +92,9 @@ class UserAvatar extends StatelessWidget {
streamChatTheme streamChatTheme
.ownMessageTheme.avatarTheme?.borderRadius, .ownMessageTheme.avatarTheme?.borderRadius,
image: DecorationImage( image: DecorationImage(
image: imageProvider, fit: BoxFit.cover), image: imageProvider,
fit: BoxFit.cover,
),
), ),
), ),
) )
@@ -90,8 +90,7 @@ class MessageSearchBlocState extends State<MessageSearchBloc>
_paginationEnded = false; _paginationEnded = false;
} }
if ((!clear && _paginationEnded) || if ((!clear && _paginationEnded) || _queryMessagesLoadingController.value) {
_queryMessagesLoadingController.value == true) {
return; return;
} }
@@ -77,8 +77,7 @@ class UsersBlocState extends State<UsersBloc>
_paginationEnded = false; _paginationEnded = false;
} }
if ((!clear && _paginationEnded) || if ((!clear && _paginationEnded) || _queryUsersLoadingController.value) {
_queryUsersLoadingController.value == true) {
return; return;
} }
@@ -15,7 +15,8 @@ part 'moor_chat_database.g.dart';
Channels, Channels,
Messages, Messages,
PinnedMessages, PinnedMessages,
PinnedMessageReactions,Reactions, PinnedMessageReactions,
Reactions,
Users, Users,
Members, Members,
Reads, Reads,
@@ -26,7 +27,8 @@ part 'moor_chat_database.g.dart';
UserDao, UserDao,
ChannelDao, ChannelDao,
MessageDao, MessageDao,
PinnedMessageDao,PinnedMessageReactionDao, PinnedMessageDao,
PinnedMessageReactionDao,
MemberDao, MemberDao,
ReactionDao, ReactionDao,
ReadDao, ReadDao,