We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5fc600 commit 554c8b0Copy full SHA for 554c8b0
lib/components/toast/gf_toast.dart
@@ -95,9 +95,9 @@ class _GFToastState extends State<GFToast> with TickerProviderStateMixin {
95
child: Column(
96
children: <Widget>[
97
Container(
98
- width: widget.width,
+ width: widget.type == GFToastType.fullWidth? MediaQuery.of(context).size.width:widget.width,
99
constraints: BoxConstraints(minHeight: 50.0),
100
- margin: widget.type == GFToastType.fullWidth
+ margin: widget.type == GFToastType.fullWidth
101
? EdgeInsets.only(left: 0, right: 0)
102
: EdgeInsets.only(left: 10, right: 10),
103
padding: EdgeInsets.all(10),
0 commit comments