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