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