Remove redundant provider

This commit is contained in:
Nutcake 2023-05-16 16:11:03 +02:00
parent c65868fa80
commit 41d51780bc

View file

@ -212,11 +212,16 @@ class _MessagesListState extends State<MessagesList> with SingleTickerProviderSt
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
blurRadius: _showBottomBarShadow ? 8 : 0, blurRadius: _showBottomBarShadow ? 8 : 0,
color: Theme.of(context).shadowColor, color: Theme
.of(context)
.shadowColor,
offset: const Offset(0, 4), offset: const Offset(0, 4),
), ),
], ],
color: Theme.of(context).colorScheme.background, color: Theme
.of(context)
.colorScheme
.background,
), ),
padding: const EdgeInsets.symmetric(horizontal: 4), padding: const EdgeInsets.symmetric(horizontal: 4),
duration: const Duration(milliseconds: 250), duration: const Duration(milliseconds: 250),
@ -257,9 +262,7 @@ class _MessagesListState extends State<MessagesList> with SingleTickerProviderSt
), ),
Padding( Padding(
padding: const EdgeInsets.only(left: 8, right: 4.0), padding: const EdgeInsets.only(left: 8, right: 4.0),
child: Consumer<MessagingClient>( child: IconButton(
builder: (context, mClient, _) {
return IconButton(
splashRadius: 24, splashRadius: 24,
onPressed: _isSendable ? () async { onPressed: _isSendable ? () async {
setState(() { setState(() {
@ -292,10 +295,8 @@ class _MessagesListState extends State<MessagesList> with SingleTickerProviderSt
} : null, } : null,
iconSize: 28, iconSize: 28,
icon: const Icon(Icons.send), icon: const Icon(Icons.send),
);
},
), ),
) ),
], ],
), ),
), ),