@@ -4,7 +4,6 @@ import 'package:getwidget/getwidget.dart';
44
55void main () => runApp (MyApp ());
66
7-
87final List <String > imageList = [
98 'https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg' ,
109 'https://cdn.pixabay.com/photo/2017/12/13/00/23/christmas-3015776_960_720.jpg' ,
@@ -98,7 +97,6 @@ final List<String> imageList = [
9897// );
9998// }
10099
101-
102100class MyApp extends StatelessWidget {
103101 static const String _title = 'Flutter Code Sample' ;
104102 @override
@@ -111,20 +109,22 @@ class MyApp extends StatelessWidget {
111109 );
112110 }
113111}
112+
114113class IntroScreen extends StatefulWidget {
115114 IntroScreen ({Key key}) : super (key: key);
116115 @override
117116 _IntroScreenState createState () => _IntroScreenState ();
118117}
119- class _IntroScreenState extends State <IntroScreen > {
120118
119+ class _IntroScreenState extends State <IntroScreen > {
121120 PageController _pageController;
122121 List <Widget > slideList;
123122 int initialPage;
124123
125124 @override
126125 void initState () {
127- _pageController = PageController (initialPage: 2 , keepPage: false , viewportFraction: 2 );
126+ _pageController =
127+ PageController (initialPage: 2 , keepPage: false , viewportFraction: 2 );
128128 initialPage = _pageController.initialPage;
129129 super .initState ();
130130 }
@@ -149,77 +149,76 @@ class _IntroScreenState extends State<IntroScreen> {
149149 // currentIndex: initialPage,
150150 // child: Text('dfghj'),
151151
152- // onForwardButtonTap: () {
153- // print('fffffff');
154- // // _pageController.nextPage(
155- // // duration: const Duration(milliseconds: 500),
156- // // curve: Curves.linear);
157- // },
158- // onBackButtonTap: () {
159- // print('kkkkkkkkk');
160- // // _pageController.previousPage(
161- // // duration: const Duration(milliseconds: 500),
162- // // curve: Curves.linear);
163- // },
164- // onDoneTap: (){
165- // print('done');
166- // },
167- // onSkipTap: (){
168- // print('skip');
169- // },
170- // backButtonTextStyle: TextStyle(
171- // fontSize: 12
172- // ),
152+ // onForwardButtonTap: () {
153+ // print('fffffff');
154+ // // _pageController.nextPage(
155+ // // duration: const Duration(milliseconds: 500),
156+ // // curve: Curves.linear);
157+ // },
158+ // onBackButtonTap: () {
159+ // print('kkkkkkkkk');
160+ // // _pageController.previousPage(
161+ // // duration: const Duration(milliseconds: 500),
162+ // // curve: Curves.linear);
163+ // },
164+ // onDoneTap: (){
165+ // print('done');
166+ // },
167+ // onSkipTap: (){
168+ // print('skip');
169+ // },
170+ // backButtonTextStyle: TextStyle(
171+ // fontSize: 12
172+ // ),
173173
174- // backButton: GFButton(onPressed: null, child: Text('back'),),
175- // forwardButton: GFButton(onPressed: null, child: Text('next'),),
176- // skipButton: GFButton(onPressed: null, child: Text('skip'),),
177- // doneButton: GFButton(onPressed: null, child: Text('done'),),
174+ // backButton: GFButton(onPressed: null, child: Text('back'),),
175+ // forwardButton: GFButton(onPressed: null, child: Text('next'),),
176+ // skipButton: GFButton(onPressed: null, child: Text('skip'),),
177+ // doneButton: GFButton(onPressed: null, child: Text('done'),),
178178
179- // backButtonText: 'bbbb',
180- // forwardButtonText: 'ffffff',
181- // skipButtonText: 'ssssss',
182- // doneButtonText: 'ddddddd',
179+ // backButtonText: 'bbbb',
180+ // forwardButtonText: 'ffffff',
181+ // skipButtonText: 'ssssss',
182+ // doneButtonText: 'ddddddd',
183183
184- // navigationBarHeight: 100,
185- // navigationBarWidth: 300,
186- // navigationBarMargin: EdgeInsets.all(20),
187- // navigationBarPadding: EdgeInsets.all(20),
188- // navigationBarShape: RoundedRectangleBorder(
189- // side: const BorderSide(color: Colors.blue, width: 4),
190- // borderRadius: BorderRadius.circular(50),
191- // ),
192- // navigationBarColor: GFColors.SECONDARY,
193- //
194- // showDivider: true,
195- // dividerHeight: 2,
196- // dividerThickness: 13,
197- // dividerColor: GFColors.ALT,
198- //
199- // dotHeight: 10,
200- // dotWidth: 16,
201- // dotShape: RoundedRectangleBorder(
202- // side: BorderSide(color: Colors.red, width: 2),
203- // borderRadius: BorderRadius.circular(5)
204- // ),
205- // inActiveColor: GFColors.DARK,
206- // activeColor: GFColors.DANGER,
207- // dotMargin: EdgeInsets.symmetric(horizontal: 6),
208- //
209- // showButton: false,
210- // showPagination: true,
184+ // navigationBarHeight: 100,
185+ // navigationBarWidth: 300,
186+ // navigationBarMargin: EdgeInsets.all(20),
187+ // navigationBarPadding: EdgeInsets.all(20),
188+ // navigationBarShape: RoundedRectangleBorder(
189+ // side: const BorderSide(color: Colors.blue, width: 4),
190+ // borderRadius: BorderRadius.circular(50),
191+ // ),
192+ // navigationBarColor: GFColors.SECONDARY,
193+ //
194+ // showDivider: true,
195+ // dividerHeight: 2,
196+ // dividerThickness: 13,
197+ // dividerColor: GFColors.ALT,
198+ //
199+ // dotHeight: 10,
200+ // dotWidth: 16,
201+ // dotShape: RoundedRectangleBorder(
202+ // side: BorderSide(color: Colors.red, width: 2),
203+ // borderRadius: BorderRadius.circular(5)
204+ // ),
205+ // inActiveColor: GFColors.DARK,
206+ // activeColor: GFColors.DANGER,
207+ // dotMargin: EdgeInsets.symmetric(horizontal: 6),
208+ //
209+ // showButton: false,
210+ // showPagination: true,
211211 // ),
212212 ),
213213 );
214214 }
215+
215216 List <Widget > slides () {
216217 slideList = [
217218 Container (
218219 decoration: BoxDecoration (
219220 // color: Colors.tealAccent,
220- borderRadius: BorderRadius .circular (20 )
221- ),
222-
221+ borderRadius: BorderRadius .circular (20 )),
223222 ),
224223 Container (
225224 color: Colors .teal,
@@ -303,8 +302,8 @@ class _IntroScreenState extends State<IntroScreen> {
303302 image: const NetworkImage (
304303 'https://cdn.pixabay.com/photo/2017/12/13/00/23/christmas-3015776_960_720.jpg' ),
305304 boxFit: BoxFit .fitHeight,
306- colorFilter: ColorFilter . mode (
307- Colors .black.withOpacity (0.6 ), BlendMode .darken),
305+ colorFilter:
306+ ColorFilter . mode ( Colors .black.withOpacity (0.6 ), BlendMode .darken),
308307 borderRadius: BorderRadius .circular (5 ),
309308// border: Border.all(color: Colors.pink, width: 2.0),
310309 ),
@@ -491,7 +490,6 @@ class _IntroScreenState extends State<IntroScreen> {
491490// );
492491// }
493492
494-
495493//
496494// class MyApp extends StatelessWidget {
497495// @override
@@ -642,7 +640,6 @@ class _IntroScreenState extends State<IntroScreen> {
642640// );
643641// }
644642
645-
646643// SingleChildScrollView(
647644// child: Container(
648645// child: Column(
@@ -1541,8 +1538,6 @@ class _IntroScreenState extends State<IntroScreen> {
15411538// ])),
15421539// ));
15431540
1544-
1545-
15461541// void main() => runApp(MyApp());
15471542//
15481543// class MyApp extends StatelessWidget {
0 commit comments