Remove redundant provider

This commit is contained in:
Nutcake 2023-05-16 16:11:03 +02:00
parent b6ade63caf
commit f411835c83

View file

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