Skip to content

Commit 1fba485

Browse files
Sandip KakadiyaSandip Kakadiya
authored andcommitted
floating widget changes & introscreen changes
1 parent b782f36 commit 1fba485

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

lib/components/floating_widget/gf_floating_widget.dart

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,26 +61,23 @@ class _GFFloatingWidgetState extends State<GFFloatingWidget> {
6161
child: widget.body ?? Container(),
6262
),
6363
Positioned(
64-
child: Container(
65-
height: MediaQuery.of(context).size.height,
66-
width: MediaQuery.of(context).size.width,
67-
color: widget.showblurness
68-
? widget.blurnessColor ?? Colors.black54
69-
: null,
70-
child: Stack(
71-
children: <Widget>[
72-
Positioned(
73-
top: widget.verticalPosition != null
74-
? widget.verticalPosition
75-
: 0.0,
76-
left: widget.horizontalPosition != null
77-
? widget.horizontalPosition
78-
: 0.0,
79-
child: widget.child ?? Container(),
80-
)
81-
],
64+
child: Container(
65+
height: MediaQuery.of(context).size.height,
66+
width: MediaQuery.of(context).size.width,
67+
color: widget.showblurness
68+
? widget.blurnessColor ?? Colors.black54
69+
: null,
70+
child: Stack(
71+
children: <Widget>[
72+
Positioned(
73+
top: widget.verticalPosition ?? 0.0,
74+
left: widget.horizontalPosition ?? 0.0,
75+
child: widget.child ?? Container(),
76+
)
77+
],
78+
),
8279
),
83-
))
80+
)
8481
],
8582
);
8683
}

lib/components/intro_screen/gf_intro_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
33
import 'package:getwidget/getwidget.dart';
44

55
class GFIntroScreen extends StatefulWidget {
6+
/// Presents informative screens to users with various posibilities in customization.
67
const GFIntroScreen({
78
Key key,
89
@required this.pageController,

lib/components/intro_screen/gf_intro_screen_bottom_navigation_bar.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,14 @@ class _GFIntroScreenBottomNavigationBarState
199199
super.initState();
200200
}
201201

202+
@override
203+
void dispose() {
204+
if (_pageController != null) {
205+
_pageController.dispose();
206+
}
207+
super.dispose();
208+
}
209+
202210
void onForwardButton() {
203211
widget.pageController.nextPage(
204212
duration: const Duration(milliseconds: 500), curve: Curves.linear);

0 commit comments

Comments
 (0)