Skip to content

Commit b545ceb

Browse files
committed
floating widget newly created
1 parent b437928 commit b545ceb

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

lib/components/toast/gf_floating_widget.dart renamed to lib/components/floating_widget/gf_floating_widget.dart

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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,15 +39,15 @@ class GFFloatingWidget extends StatefulWidget {
3939
class _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,
5252
color: widget.showblurness
5353
? widget.blurnessColor ?? Colors.black54
@@ -69,6 +69,6 @@ class _GFFloatingWidgetState extends State<GFFloatingWidget> {
6969
],
7070
),
7171
))
72-
],
73-
);
72+
],
73+
);
7474
}

lib/components/loader/gf_loader.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'package:flutter/cupertino.dart';
22
import 'package:flutter/material.dart';
3-
import 'package:getflutter/types/gf_loader_type.dart';
4-
import 'package:getflutter/size/gf_size.dart';
3+
import 'package:getflutter/getflutter.dart';
54

65
class GFLoader extends StatefulWidget {
76
const GFLoader(

lib/getflutter.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export 'shape/gf_button_shape.dart';
3939
export 'shape/gf_icon_button_shape.dart';
4040
export 'size/gf_size.dart';
4141
export 'types/gf_button_type.dart';
42+
export 'types/gf_loader_type.dart';
4243
export 'types/gf_toast_type.dart';
4344
export 'types/gf_toggle_type.dart';
4445
export 'types/gf_typography_type.dart';
45-
export 'types/gf_loader_type.dart';
46+

0 commit comments

Comments
 (0)