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

Loading…
Cancel
Save