Skip to content

Commit 554c8b0

Browse files
committed
animation added to gf-toast
1 parent f5fc600 commit 554c8b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/components/toast/gf_toast.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ class _GFToastState extends State<GFToast> with TickerProviderStateMixin {
9595
child: Column(
9696
children: <Widget>[
9797
Container(
98-
width: widget.width,
98+
width: widget.type == GFToastType.fullWidth? MediaQuery.of(context).size.width:widget.width,
9999
constraints: BoxConstraints(minHeight: 50.0),
100-
margin: widget.type == GFToastType.fullWidth
100+
margin: widget.type == GFToastType.fullWidth
101101
? EdgeInsets.only(left: 0, right: 0)
102102
: EdgeInsets.only(left: 10, right: 10),
103103
padding: EdgeInsets.all(10),

0 commit comments

Comments
 (0)