File tree Expand file tree Collapse file tree 3 files changed +25
-19
lines changed Expand file tree Collapse file tree 3 files changed +25
-19
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
33import 'package:getwidget/getwidget.dart' ;
44
55class GFIntroScreen extends StatefulWidget {
6+ /// Presents informative screens to users with various posibilities in customization.
67 const GFIntroScreen ({
78 Key key,
89 @required this .pageController,
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments