@@ -6,12 +6,12 @@ class GFFloatingWidget extends StatefulWidget {
66 /// Inside floating widget [GFToast] can be used as body. See [GFToast]
77 const GFFloatingWidget (
88 {Key key,
9- this .child,
10- this .horizontalPosition,
11- this .verticalPosition,
12- this .blurnessColor,
13- this .showblurness = false ,
14- this .body})
9+ this .child,
10+ this .horizontalPosition,
11+ this .verticalPosition,
12+ this .blurnessColor,
13+ this .showblurness = false ,
14+ this .body})
1515 : super (key: key);
1616
1717 ///child of type [Widget] which floats across the body based on horizontal and vertical position
@@ -39,16 +39,17 @@ class GFFloatingWidget extends StatefulWidget {
3939class _GFFloatingWidgetState extends State <GFFloatingWidget > {
4040 @override
4141 Widget build (BuildContext context) => Stack (
42- alignment: Alignment .center,
43- fit: StackFit .loose,
44- children: < Widget > [
45- Container (
46- height: MediaQuery .of (context).size.height,
47- child: widget.body ?? Container (),
48- ),
49- Positioned (
50- child: Container (
42+ alignment: Alignment .center,
43+ fit: StackFit .loose,
44+ children: < Widget > [
45+ Container (
46+ height: MediaQuery .of (context).size.height,
47+ child: widget.body ?? Container (),
48+ ),
49+ Positioned (
50+ child: Container (
5151 height: MediaQuery .of (context).size.height,
52+ width: MediaQuery .of (context).size.width,
5253 color: widget.showblurness
5354 ? widget.blurnessColor ?? Colors .black54
5455 : null ,
@@ -61,14 +62,11 @@ class _GFFloatingWidgetState extends State<GFFloatingWidget> {
6162 left: widget.horizontalPosition != null
6263 ? widget.horizontalPosition
6364 : 0.0 ,
64- right: widget.horizontalPosition != null
65- ? widget.horizontalPosition
66- : 0.0 ,
6765 child: widget.child ?? Container (),
6866 )
6967 ],
7068 ),
7169 ))
72- ],
73- );
70+ ],
71+ );
7472}
0 commit comments