Get rid of Flexible redundancy

pull/1384/head
Kelrap 1 year ago
parent 56de4ce2bc
commit 328ce621af

@ -157,12 +157,10 @@ class ToolbarDisplayController {
// If message portion is too tall, decrease toolbar height
// as necessary to prevent toolbar from acting strange
// Problems may still occur if toolbar height is decreased too much
? Flexible(
child: toolbar!,
)
? toolbar!
: overlayMessage,
const SizedBox(height: 6),
toolbarUp ? overlayMessage : Flexible(child: toolbar!),
toolbarUp ? overlayMessage : toolbar!,
],
);
} catch (err) {
@ -421,7 +419,8 @@ class MessageToolbarState extends State<MessageToolbar> {
@override
Widget build(BuildContext context) {
return Material(
return Flexible(
child: Material(
type: MaterialType.transparency,
child: Container(
padding: const EdgeInsets.all(10),
@ -500,6 +499,7 @@ class MessageToolbarState extends State<MessageToolbar> {
],
),
),
),
);
}
}

Loading…
Cancel
Save