@@ -52,85 +52,39 @@ class _MyHomePageState extends State<MyHomePage> {
5252 crossAxisAlignment: CrossAxisAlignment .center,
5353 children: < Widget > [
5454
55- // Card(
56- // child: Stack(
57- // alignment: AlignmentDirectional.center,
58- // children: <Widget>[
59- //// Container(
60- ////// child: new Text(
61- ////// 'Hello world',
62- ////// style: Theme.of(context).textTheme.display4
63- ////// ),
64- //// decoration: new BoxDecoration(
65- //// color: const Color(0xff7c94b6),
66- //// image: new DecorationImage(
67- //// fit: BoxFit.cover,
68- //// colorFilter: new ColorFilter.mode(Colors.black.withOpacity(0.2), BlendMode.dstATop),
69- //// image: new NetworkImage(
70- //// 'http://www.allwhitebackground.com/images/2/2582-190x190.jpg',
71- //// ),
72- //// ),
73- //// ),
74- //// ),
75- // Image.network(
76- // 'http://www.allwhitebackground.com/images/2/2582-190x190.jpg',
77- // ),
78- // Column(
79- // mainAxisAlignment: MainAxisAlignment.spaceEvenly,
80- // crossAxisAlignment: CrossAxisAlignment.center,
81- // children: <Widget>[
82- // GFTitleBar(
83- // avatar: GFAvatar(
84- // child: Text("tb"),
85- // ),
86- // title: Text('title'),
87- // subTitle: Text('subtitle'),
88- // icon: GFIconButton(
89- // onPressed: null,
90- // type: GFType.transparent,
91- // icon: Icon(Icons.favorite_border),
92- // ),
93- // ),
94- // Text("Flutter "
95- // "Flutter is Google's mobile UI framework for crafting high-quality native interfaces on iOS and Android in "),
96- // GFButtonBar(
97- // mainAxisSize: MainAxisSize.min,
98- // children: <Widget>[
99- // GFButton(onPressed: null, child: Text("favorite"), icon: Icon(Icons.favorite_border), type: GFType.transparent, ),
100- // GFButton(onPressed: null, child: Text("share"), icon: Icon(Icons.share), type: GFType.outline, ),
101- // ],
102- // ),
103- //
104- // ],
105- // ),
106- // ],
107- // ),
108- // ),
109- //
110- GFImageOverlay (
111- height: 200.0 ,
112- width: MediaQuery .of (context).size.width,
113- margin: EdgeInsets .all (16.0 ),
114- padding: EdgeInsets .all (16.0 ),
115- child: Column (
116- mainAxisAlignment: MainAxisAlignment .spaceEvenly,
117- crossAxisAlignment: CrossAxisAlignment .center,
55+
56+ GFCard (
57+ boxFit: BoxFit .cover,
58+ colorFilter: new ColorFilter .mode (Colors .black.withOpacity (0.67 ), BlendMode .darken),
59+ image: Image .asset ("lib/assets/pizza.jpeg" ),
60+ // imageOverlay: AssetImage("lib/assets/pizza.jpeg"),
61+ titlePosition: GFPosition .end,
62+ title: GFTitleBar (
63+ avatar: GFAvatar (
64+ child: Text ("tb" ),
65+ ),
66+ title: Text ('title' , style: TextStyle (color: Colors .grey),),
67+ subTitle: Text ('subtitle' , style: TextStyle (color: Colors .grey),),
68+ icon: GFIconButton (
69+ onPressed: null ,
70+ icon: Icon (Icons .favorite_border),
71+ type: GFType .transparent,
72+ ),
73+ ),
74+ content: Text ("Flutter "
75+ "Flutter is Google's mobile UI framework for crafting"
76+ " high-quality native interfaces on iOS and Android in "
77+ "Flutter " , style: TextStyle (color: Colors .grey), ),
78+ buttonBar: GFButtonBar (
79+ mainAxisSize: MainAxisSize .min,
11880 children: < Widget > [
119- new Text (
120- 'Hello world' , style: TextStyle (color: Colors .white),
121- ),new Text (
122- 'Hello world' , style: TextStyle (color: Colors .white),
123- ),
81+ GFButton (onPressed: null , child: Text ("favorite" ), icon: Icon (Icons .favorite_border), type: GFType .transparent, ),
82+ GFButton (onPressed: null , child: Text ("share" ), icon: Icon (Icons .share), type: GFType .outline, ),
12483 ],
12584 ),
126- // color: Colors.orange,
127- image: AssetImage ("lib/assets/pizza.jpeg" ),
128- boxFit: BoxFit .cover,
129- colorFilter: new ColorFilter .mode (Colors .black.withOpacity (0.6 ), BlendMode .darken),
130- borderRadius: new BorderRadius .circular (5.0 ),
131- // border: Border.all(color: Colors.pink, width: 2.0),
13285 ),
13386
87+
13488// GFButtonBar(
13589// mainAxisSize: MainAxisSize.min,
13690// children: <Widget>[
@@ -153,33 +107,52 @@ class _MyHomePageState extends State<MyHomePage> {
153107// ),
154108// ),
155109
156- GFCard (
110+ GFImageOverlay (
111+ width: MediaQuery .of (context).size.width,
157112 margin: EdgeInsets .all (16.0 ),
158- // color: Colors.pink,
159- titlePosition: GFPosition .end,
160- avatar: GFAvatar (
161- child: Text ("tb" ),
162- ),
163- title: Text ('title' ),
164- subTitle: Text ('subtitle' ),
165- icon: GFIconButton (
166- onPressed: null ,
167- icon: Icon (Icons .favorite_border),
168- type: GFType .transparent,
169- ),
170- // image: Image.asset("lib/assets/pizza.jpeg"),
171- // imageOverlay: Image.asset("lib/assets/pizza.jpeg"),
172- content: Text ("Flutter "
173- "Flutter is Google's mobile UI framework for crafting high-quality native interfaces on iOS and Android in " ),
174- buttonBar: GFButtonBar (
175- mainAxisSize: MainAxisSize .min,
113+ padding: EdgeInsets .all (16.0 ),
114+ child: Column (
176115 children: < Widget > [
177- GFButton (onPressed: null , child: Text ("favorite" ), icon: Icon (Icons .favorite_border), type: GFType .transparent, ),
178- GFButton (onPressed: null , child: Text ("share" ), icon: Icon (Icons .share), type: GFType .outline, ),
116+ new Text (
117+ 'Hello world' , style: TextStyle (color: Colors .white),
118+ ),new Text (
119+ 'Hello world' , style: TextStyle (color: Colors .white),
120+ ),
121+ new Text (
122+ 'Hello world' , style: TextStyle (color: Colors .white),
123+ ),new Text (
124+ 'Hello world' , style: TextStyle (color: Colors .white),
125+ ),
126+ new Text (
127+ 'Hello world' , style: TextStyle (color: Colors .white),
128+ ),new Text (
129+ 'Hello world' , style: TextStyle (color: Colors .white),
130+ ),
131+ new Text (
132+ 'Hello world' , style: TextStyle (color: Colors .white),
133+ ),new Text (
134+ 'Hello world' , style: TextStyle (color: Colors .white),
135+ ),
136+ new Text (
137+ 'Hello world' , style: TextStyle (color: Colors .white),
138+ ),new Text (
139+ 'Hello world' , style: TextStyle (color: Colors .white),
140+ ),
141+ new Text (
142+ 'Hello world' , style: TextStyle (color: Colors .white),
143+ ),new Text (
144+ 'Hello world' , style: TextStyle (color: Colors .white),
145+ ),
179146 ],
180147 ),
181-
148+ // color: Colors.orange,
149+ image: AssetImage ("lib/assets/pizza.jpeg" ),
150+ boxFit: BoxFit .cover,
151+ colorFilter: new ColorFilter .mode (Colors .black.withOpacity (0.6 ), BlendMode .darken),
152+ borderRadius: new BorderRadius .circular (5.0 ),
153+ // border: Border.all(color: Colors.pink, width: 2.0),
182154 ),
155+
183156//
184157// GFAvatar(
185158//// radius: 40.0,
0 commit comments