@@ -86,7 +86,7 @@ class _MyHomePageState extends State<MyHomePage> {
8686 title: Text (widget.title),
8787 ),
8888 body: GFFloatingWidget (
89- // horizontalPosition: screenWidth * 0.9 ,
89+ // horizontalPosition: screenHeight * 0.8 ,
9090 child: showToast? GFToast (
9191 text: 'xfcgvhjk' ,
9292
@@ -191,36 +191,36 @@ class _MyHomePageState extends State<MyHomePage> {
191191 )
192192 ),
193193
194- GFSlider (
195- // pagerSize: 12.0,
196- // activeIndicator: Colors.pink,
197- // passiveIndicator: Colors.pink.withOpacity(0.4),
198- viewportFraction: 0.9 ,
199- aspectRatio: 2.0 ,
200- // autoPlay: true,
201- enlargeMainPage: true ,
202- pagination: true ,
203- items: imageList.map (
204- (url) {
205- return Container (
206- margin: EdgeInsets .all (5.0 ),
207- child: ClipRRect (
208- borderRadius: BorderRadius .all (Radius .circular (5.0 )),
209- child: Image .network (
210- url,
211- fit: BoxFit .cover,
212- width: 1000.0 ,
213- ),
214- ),
215- );
216- },
217- ).toList (),
218- onPageChanged: (index) {
219- setState (() {
220- index;
221- });
222- },
223- ),
194+ // GFSlider(
195+ //// pagerSize: 12.0,
196+ //// activeIndicator: Colors.pink,
197+ //// passiveIndicator: Colors.pink.withOpacity(0.4),
198+ // viewportFraction: 0.9,
199+ // aspectRatio: 2.0,
200+ //// autoPlay: true,
201+ // enlargeMainPage: true,
202+ // pagination: true,
203+ // items: imageList.map(
204+ // (url) {
205+ // return Container(
206+ // margin: EdgeInsets.all(5.0),
207+ // child: ClipRRect(
208+ // borderRadius: BorderRadius.all(Radius.circular(5.0)),
209+ // child: Image.network(
210+ // url,
211+ // fit: BoxFit.cover,
212+ // width: 1000.0,
213+ // ),
214+ // ),
215+ // );
216+ // },
217+ // ).toList(),
218+ // onPageChanged: (index) {
219+ // setState(() {
220+ // index;
221+ // });
222+ // },
223+ // ),
224224
225225 GFButton (onPressed: (){
226226 setState (() {
@@ -247,6 +247,21 @@ class _MyHomePageState extends State<MyHomePage> {
247247// ),
248248 ),
249249
250+ GFButton (
251+ color: Colors .orange,
252+ onPressed: null ,
253+ child: Text ("share" ),
254+ type: GFType .outline,
255+ shape: GFShape .pills,
256+ // buttonBoxShadow: true,
257+ // boxShadow: BoxShadow(
258+ // color: Colors.pink,
259+ // blurRadius: 1.5,
260+ // spreadRadius: 2.0,
261+ // offset: Offset.zero,
262+ // ),
263+ ),
264+
250265 GFTabs (
251266 initialIndex: 0 ,
252267 length: 3 ,
@@ -298,77 +313,77 @@ class _MyHomePageState extends State<MyHomePage> {
298313 ],
299314 ),
300315 ),
301- GFCard (
302- boxFit: BoxFit .cover,
303- colorFilter: new ColorFilter .mode (
304- Colors .black.withOpacity (0.67 ), BlendMode .darken),
305- image: Image .asset ("lib/assets/food.jpeg" ),
306- // imageOverlay: AssetImage("lib/assets/food.jpeg"),
307- titlePosition: GFPosition .end,
308- title: GFListTile (
309- avatar: GFAvatar (
310- child: Text ("tb" ),
311- ),
312- title: Text (
313- 'title' ,
314- style: TextStyle (color: Colors .grey),
315- ),
316- subTitle: Text (
317- 'subtitle' ,
318- style: TextStyle (color: Colors .grey),
319- ),
320- icon: GFIconButton (
321- onPressed: null ,
322- icon: Icon (Icons .favorite_border),
323- type: GFType .transparent,
324- ),
325- ),
326- content: Text (
327- "Flutter "
328- "Flutter is Google's mobile UI framework for crafting"
329- " high-quality native interfaces on iOS and Android in "
330- "Flutter " ,
331- style: TextStyle (color: Colors .grey),
332- ),
333- buttonBar: GFButtonBar (
334- mainAxisSize: MainAxisSize .min,
335- children: < Widget > [
336- GFButton (
337- onPressed: null ,
338- child: Text ("favorite" ),
339- icon: Icon (Icons .favorite_border),
340- type: GFType .transparent,
341- ),
342- GFButton (
343- onPressed: null ,
344- child: Text ("share" ),
345- icon: Icon (Icons .share),
346- type: GFType .outline,
347- ),
348- ],
349- ),
350- ),
351- GFButtonBar (
352- mainAxisSize: MainAxisSize .min,
353- children: < Widget > [
354- GFButton (
355- onPressed: null ,
356- child: Text ("like" ),
357- icon: Icon (Icons .favorite_border),
358- type: GFType .transparent,
359- ),
360- GFButton (
361- onPressed: null ,
362- child: Text ("comment" ),
363- ),
364- GFButton (
365- onPressed: null ,
366- child: Text ("share" ),
367- icon: Icon (Icons .share),
368- type: GFType .outline,
369- ),
370- ],
371- ),
316+ // GFCard(
317+ // boxFit: BoxFit.cover,
318+ // colorFilter: new ColorFilter.mode(
319+ // Colors.black.withOpacity(0.67), BlendMode.darken),
320+ // image: Image.asset("lib/assets/food.jpeg"),
321+ //// imageOverlay: AssetImage("lib/assets/food.jpeg"),
322+ // titlePosition: GFPosition.end,
323+ // title: GFListTile(
324+ // avatar: GFAvatar(
325+ // child: Text("tb"),
326+ // ),
327+ // title: Text(
328+ // 'title',
329+ // style: TextStyle(color: Colors.grey),
330+ // ),
331+ // subTitle: Text(
332+ // 'subtitle',
333+ // style: TextStyle(color: Colors.grey),
334+ // ),
335+ // icon: GFIconButton(
336+ // onPressed: null,
337+ // icon: Icon(Icons.favorite_border),
338+ // type: GFType.transparent,
339+ // ),
340+ // ),
341+ // content: Text(
342+ // "Flutter "
343+ // "Flutter is Google's mobile UI framework for crafting"
344+ // " high-quality native interfaces on iOS and Android in "
345+ // "Flutter ",
346+ // style: TextStyle(color: Colors.grey),
347+ // ),
348+ // buttonBar: GFButtonBar(
349+ // mainAxisSize: MainAxisSize.min,
350+ // children: <Widget>[
351+ // GFButton(
352+ // onPressed: null,
353+ // child: Text("favorite"),
354+ // icon: Icon(Icons.favorite_border),
355+ // type: GFType.transparent,
356+ // ),
357+ // GFButton(
358+ // onPressed: null,
359+ // child: Text("share"),
360+ // icon: Icon(Icons.share),
361+ // type: GFType.outline,
362+ // ),
363+ // ],
364+ // ),
365+ // ),
366+ // GFButtonBar(
367+ // mainAxisSize: MainAxisSize.min,
368+ // children: <Widget>[
369+ // GFButton(
370+ // onPressed: null,
371+ // child: Text("like"),
372+ // icon: Icon(Icons.favorite_border),
373+ // type: GFType.transparent,
374+ // ),
375+ // GFButton(
376+ // onPressed: null,
377+ // child: Text("comment"),
378+ // ),
379+ // GFButton(
380+ // onPressed: null,
381+ // child: Text("share"),
382+ // icon: Icon(Icons.share),
383+ // type: GFType.outline,
384+ // ),
385+ // ],
386+ // ),
372387 ],
373388 ),
374389 ),
0 commit comments