@@ -67,7 +67,7 @@ class _MyHomePageState extends State<MyHomePage> {
6767 @override
6868 Widget build (BuildContext context) {
6969 return Scaffold (
70- backgroundColor: Colors .orange ,
70+ backgroundColor: Colors .cyanAccent ,
7171 appBar: AppBar (
7272 title: Text (widget.title),
7373 ),
@@ -76,95 +76,51 @@ class _MyHomePageState extends State<MyHomePage> {
7676 mainAxisAlignment: MainAxisAlignment .center,
7777 crossAxisAlignment: CrossAxisAlignment .center,
7878 children: < Widget > [
79- // Container(
80- // height: 300.0,
81- // child: DefaultTabController(
82- // length: 2,
83- // child: Scaffold(
84- // appBar: AppBar(
85- // bottom: TabBar(
86- // indicator: UnderlineTabIndicator(
87- // borderSide: BorderSide(color: Color(0xDD613896), width: 2.0),
88- // insets: EdgeInsets.fromLTRB(5.0, 0.0, 5.0, 4.0),
89- // ),
90- // tabs: [
91- // Tab(icon: Icon(Icons.directions_car), text: "Non persistent",),
92- // Tab(icon: Icon(Icons.directions_transit), text: "Persistent"),
93- // ],
94- // ),
95- // title: Text('Persistent Tab Demo'),
96- // ),
97- // body: TabBarView(
98- // children: [
99- // Text("cdx"),
100- // Text("cdv")
101- // ],
102- // ),
103- // ),
104- // ),
105- // ),
106-
107- // GFSlider(
108- //// pagerSize: 12.0,
109- //// activeIndicator: Colors.pink,
110- //// passiveIndicator: Colors.pink.withOpacity(0.4),
111- // viewportFraction: 0.9,
112- // aspectRatio: 2.0,
113- //// autoPlay: true,
114- // enlargeMainPage: true,
115- // pagination: true,
116- // items: imageList.map(
117- // (url) {
118- // return Container(
119- // margin: EdgeInsets.all(5.0),
120- // child: ClipRRect(
121- // borderRadius: BorderRadius.all(Radius.circular(5.0)),
122- // child: Image.network(
123- // url,
124- // fit: BoxFit.cover,
125- // width: 1000.0,
126- // ),
127- // ),
128- // );
129- // },
130- // ).toList(),
131- // onPageChanged: (index) {
132- // setState(() {
133- // index;
134- // });
135- // },
136- // ),
13779
138- RawMaterialButton (onPressed: null , child: Text ("fv" ),),
139- FlatButton (onPressed: null , child: Text ("cds" )),
80+ GFSlider (
81+ // pagerSize: 12.0,
82+ // activeIndicator: Colors.pink,
83+ // passiveIndicator: Colors.pink.withOpacity(0.4),
84+ viewportFraction: 0.9 ,
85+ aspectRatio: 2.0 ,
86+ // autoPlay: true,
87+ enlargeMainPage: true ,
88+ pagination: true ,
89+ items: imageList.map (
90+ (url) {
91+ return Container (
92+ margin: EdgeInsets .all (5.0 ),
93+ child: ClipRRect (
94+ borderRadius: BorderRadius .all (Radius .circular (5.0 )),
95+ child: Image .network (
96+ url,
97+ fit: BoxFit .cover,
98+ width: 1000.0 ,
99+ ),
100+ ),
101+ );
102+ },
103+ ).toList (),
104+ onPageChanged: (index) {
105+ setState (() {
106+ index;
107+ });
108+ },
109+ ),
140110
141- // Container(
142- // decoration: BoxDecoration(
143- // color: Colors.teal,
144- // boxShadow: [BoxShadow(
145- // color: Colors.pink,
146- // blurRadius: 1.5,
147- // spreadRadius: 2.0,
148- // offset: Offset.zero,
149- // )
150- // ]
151- // ),
152- // child: OutlineButton(child: Text("Fvd"),)),
153- //
154- //
155111 GFButton (
156112 color: Colors .orange,
157113 onPressed: null ,
158114 child: Text ("share" ),
159115 type: GFType .outline,
160116 shape: GFShape .pills,
161- buttonBoxShadow: true ,
162- boxShadow: BoxShadow (
163- color: Colors .pink. withOpacity ( 0.4 ) ,
164- blurRadius: 1.5 ,
165- spreadRadius: 2.0 ,
166- offset: Offset .zero,
167- ),
117+ // buttonBoxShadow: true,
118+ // boxShadow: BoxShadow(
119+ // color: Colors.pink,
120+ // blurRadius: 1.5,
121+ // spreadRadius: 2.0,
122+ // offset: Offset.zero,
123+ // ),
168124 ),
169125
170126 GFTabs (
0 commit comments