Improve responsiveness of bottom inset in message view

This commit is contained in:
Nutcake 2023-05-16 13:20:11 +02:00
parent ece488d177
commit 57cbd4370b

View file

@ -193,9 +193,7 @@ class _MessagesListState extends State<MessagesList> with SingleTickerProviderSt
},
),
),
],
),
bottomNavigationBar: AnimatedContainer(
AnimatedContainer(
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
@ -206,9 +204,7 @@ class _MessagesListState extends State<MessagesList> with SingleTickerProviderSt
],
color: Theme.of(context).colorScheme.background,
),
padding: MediaQuery
.of(context)
.viewInsets + const EdgeInsets.symmetric(horizontal: 4),
padding: const EdgeInsets.symmetric(horizontal: 4),
duration: const Duration(milliseconds: 250),
child: Row(
children: [
@ -287,6 +283,8 @@ class _MessagesListState extends State<MessagesList> with SingleTickerProviderSt
],
),
),
],
),
);
}
}