@@ -83,56 +83,70 @@ class _MyHomePageState extends State<MyHomePage> {
8383 ).toList (),
8484 ),
8585
86- GFCard (
87- boxFit: BoxFit .cover,
88- colorFilter: new ColorFilter .mode (
89- Colors .black.withOpacity (0.67 ), BlendMode .darken),
90- image: Image .asset ("lib/assets/food.jpeg" ),
91- // imageOverlay: AssetImage("lib/assets/food.jpeg"),
92- titlePosition: GFPosition .end,
93- title: GFTitleBar (
94- avatar: GFAvatar (
95- child: Text ("tb" ),
96- ),
97- title: Text (
98- 'title' ,
99- style: TextStyle (color: Colors .grey),
100- ),
101- subTitle: Text (
102- 'subtitle' ,
103- style: TextStyle (color: Colors .grey),
104- ),
105- icon: GFIconButton (
106- onPressed: null ,
107- icon: Icon (Icons .favorite_border),
108- type: GFType .transparent,
109- ),
110- ),
111- content: Text (
112- "Flutter "
113- "Flutter is Google's mobile UI framework for crafting"
114- " high-quality native interfaces on iOS and Android in "
115- "Flutter " ,
116- style: TextStyle (color: Colors .grey),
117- ),
118- buttonBar: GFButtonBar (
119- mainAxisSize: MainAxisSize .min,
120- children: < Widget > [
121- GFButton (
122- onPressed: null ,
123- child: Text ("favorite" ),
124- icon: Icon (Icons .favorite_border),
125- type: GFType .transparent,
126- ),
127- GFButton (
128- onPressed: null ,
129- child: Text ("share" ),
130- icon: Icon (Icons .share),
131- type: GFType .outline,
132- ),
133- ],
134- ),
135- ),
86+ // GFSlider(
87+ // autoPlay: true,
88+ // viewportFraction: 1.0,
89+ // aspectRatio: MediaQuery.of(context).size.aspectRatio,
90+ // items: imageList.map((url) {
91+ // return Image.network(
92+ // url,
93+ // fit: BoxFit.cover,
94+ // width: 1000.0,
95+ // );
96+ // },
97+ // ).toList(),
98+ // ),
99+
100+ // GFCard(
101+ // boxFit: BoxFit.cover,
102+ // colorFilter: new ColorFilter.mode(
103+ // Colors.black.withOpacity(0.67), BlendMode.darken),
104+ // image: Image.asset("lib/assets/food.jpeg"),
105+ //// imageOverlay: AssetImage("lib/assets/food.jpeg"),
106+ // titlePosition: GFPosition.end,
107+ // title: GFTitleBar(
108+ // avatar: GFAvatar(
109+ // child: Text("tb"),
110+ // ),
111+ // title: Text(
112+ // 'title',
113+ // style: TextStyle(color: Colors.grey),
114+ // ),
115+ // subTitle: Text(
116+ // 'subtitle',
117+ // style: TextStyle(color: Colors.grey),
118+ // ),
119+ // icon: GFIconButton(
120+ // onPressed: null,
121+ // icon: Icon(Icons.favorite_border),
122+ // type: GFType.transparent,
123+ // ),
124+ // ),
125+ // content: Text(
126+ // "Flutter "
127+ // "Flutter is Google's mobile UI framework for crafting"
128+ // " high-quality native interfaces on iOS and Android in "
129+ // "Flutter ",
130+ // style: TextStyle(color: Colors.grey),
131+ // ),
132+ // buttonBar: GFButtonBar(
133+ // mainAxisSize: MainAxisSize.min,
134+ // children: <Widget>[
135+ // GFButton(
136+ // onPressed: null,
137+ // child: Text("favorite"),
138+ // icon: Icon(Icons.favorite_border),
139+ // type: GFType.transparent,
140+ // ),
141+ // GFButton(
142+ // onPressed: null,
143+ // child: Text("share"),
144+ // icon: Icon(Icons.share),
145+ // type: GFType.outline,
146+ // ),
147+ // ],
148+ // ),
149+ // ),
136150
137151// GFButtonBar(
138152// mainAxisSize: MainAxisSize.min,
@@ -156,70 +170,70 @@ class _MyHomePageState extends State<MyHomePage> {
156170// ),
157171// ),
158172
159- GFImageOverlay (
160- width: MediaQuery .of (context).size.width,
161- margin: EdgeInsets .all (16.0 ),
162- padding: EdgeInsets .all (16.0 ),
163- child: Column (
164- children: < Widget > [
165- new Text (
166- 'Hello world' ,
167- style: TextStyle (color: Colors .white),
168- ),
169- new Text (
170- 'Hello world' ,
171- style: TextStyle (color: Colors .white),
172- ),
173- new Text (
174- 'Hello world' ,
175- style: TextStyle (color: Colors .white),
176- ),
177- new Text (
178- 'Hello world' ,
179- style: TextStyle (color: Colors .white),
180- ),
181- new Text (
182- 'Hello world' ,
183- style: TextStyle (color: Colors .white),
184- ),
185- new Text (
186- 'Hello world' ,
187- style: TextStyle (color: Colors .white),
188- ),
189- new Text (
190- 'Hello world' ,
191- style: TextStyle (color: Colors .white),
192- ),
193- new Text (
194- 'Hello world' ,
195- style: TextStyle (color: Colors .white),
196- ),
197- new Text (
198- 'Hello world' ,
199- style: TextStyle (color: Colors .white),
200- ),
201- new Text (
202- 'Hello world' ,
203- style: TextStyle (color: Colors .white),
204- ),
205- new Text (
206- 'Hello world' ,
207- style: TextStyle (color: Colors .white),
208- ),
209- new Text (
210- 'Hello world' ,
211- style: TextStyle (color: Colors .white),
212- ),
213- ],
214- ),
215- // color: Colors.orange,
216- image: AssetImage ("lib/assets/food.jpeg" ),
217- boxFit: BoxFit .cover,
218- colorFilter: new ColorFilter .mode (
219- Colors .black.withOpacity (0.6 ), BlendMode .darken),
220- borderRadius: new BorderRadius .circular (5.0 ),
221- // border: Border.all(color: Colors.pink, width: 2.0),
222- ),
173+ // GFImageOverlay(
174+ // width: MediaQuery.of(context).size.width,
175+ // margin: EdgeInsets.all(16.0),
176+ // padding: EdgeInsets.all(16.0),
177+ // child: Column(
178+ // children: <Widget>[
179+ // new Text(
180+ // 'Hello world',
181+ // style: TextStyle(color: Colors.white),
182+ // ),
183+ // new Text(
184+ // 'Hello world',
185+ // style: TextStyle(color: Colors.white),
186+ // ),
187+ // new Text(
188+ // 'Hello world',
189+ // style: TextStyle(color: Colors.white),
190+ // ),
191+ // new Text(
192+ // 'Hello world',
193+ // style: TextStyle(color: Colors.white),
194+ // ),
195+ // new Text(
196+ // 'Hello world',
197+ // style: TextStyle(color: Colors.white),
198+ // ),
199+ // new Text(
200+ // 'Hello world',
201+ // style: TextStyle(color: Colors.white),
202+ // ),
203+ // new Text(
204+ // 'Hello world',
205+ // style: TextStyle(color: Colors.white),
206+ // ),
207+ // new Text(
208+ // 'Hello world',
209+ // style: TextStyle(color: Colors.white),
210+ // ),
211+ // new Text(
212+ // 'Hello world',
213+ // style: TextStyle(color: Colors.white),
214+ // ),
215+ // new Text(
216+ // 'Hello world',
217+ // style: TextStyle(color: Colors.white),
218+ // ),
219+ // new Text(
220+ // 'Hello world',
221+ // style: TextStyle(color: Colors.white),
222+ // ),
223+ // new Text(
224+ // 'Hello world',
225+ // style: TextStyle(color: Colors.white),
226+ // ),
227+ // ],
228+ // ),
229+ //// color: Colors.orange,
230+ // image: AssetImage("lib/assets/food.jpeg"),
231+ // boxFit: BoxFit.cover,
232+ // colorFilter: new ColorFilter.mode(
233+ // Colors.black.withOpacity(0.6), BlendMode.darken),
234+ // borderRadius: new BorderRadius.circular(5.0),
235+ //// border: Border.all(color: Colors.pink, width: 2.0),
236+ // ),
223237
224238//
225239// GFAvatar(
0 commit comments