@@ -52,30 +52,84 @@ class _MyHomePageState extends State<MyHomePage> {
5252 crossAxisAlignment: CrossAxisAlignment .center,
5353 children: < Widget > [
5454
55- // GFImageOverlay(
56- // height: 200.0,
57- // width: MediaQuery.of(context).size.width*0.8,
58- //// margin: EdgeInsets.all(16.0),
59- //// padding: EdgeInsets.all(16.0),
60- // child: Column(
61- // mainAxisAlignment: MainAxisAlignment.spaceEvenly,
62- // crossAxisAlignment: CrossAxisAlignment.center,
55+ // Card(
56+ // child: Stack(
57+ // alignment: AlignmentDirectional.center,
6358// children: <Widget>[
64- // new Text(
65- // 'Hello world', style: TextStyle(color: Colors.white),
66- // ),new Text(
67- // 'Hello world', style: TextStyle(color: Colors.white),
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',
6877// ),
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+ // ),
69103//
104+ // ],
105+ // ),
70106// ],
71107// ),
72- //// color: Colors.orange,
73- // image: AssetImage("lib/assets/pizza.jpeg"),
74- // boxFit: BoxFit.cover,
75- // colorFilter: new ColorFilter.mode(Colors.black.withOpacity(0.6), BlendMode.darken),
76- // borderRadius: new BorderRadius.circular(5.0),
77- //// border: Border.all(color: Colors.pink, width: 2.0),
78108// ),
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,
118+ 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+ ),
124+ ],
125+ ),
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),
132+ ),
79133
80134// GFButtonBar(
81135// mainAxisSize: MainAxisSize.min,
@@ -100,6 +154,8 @@ class _MyHomePageState extends State<MyHomePage> {
100154// ),
101155
102156 GFCard (
157+ margin: EdgeInsets .all (16.0 ),
158+ // color: Colors.pink,
103159 titlePosition: GFPosition .end,
104160 avatar: GFAvatar (
105161 child: Text ("tb" ),
@@ -111,30 +167,8 @@ class _MyHomePageState extends State<MyHomePage> {
111167 icon: Icon (Icons .favorite_border),
112168 type: GFType .transparent,
113169 ),
114- image: Image .asset ("lib/assets/pizza.jpeg" ),
115- imageOverlay: GFImageOverlay (
116- height: 200.0 ,
117- width: MediaQuery .of (context).size.width,
118- margin: EdgeInsets .all (16.0 ),
119- // padding: EdgeInsets.all(16.0),
120- // child: Column(
121- // mainAxisAlignment: MainAxisAlignment.spaceEvenly,
122- // crossAxisAlignment: CrossAxisAlignment.center,
123- // children: <Widget>[
124- // new Text(
125- // 'Hello world', style: TextStyle(color: Colors.white),
126- // ),new Text(
127- // 'Hello world', style: TextStyle(color: Colors.white),
128- // ),
129- // ],
130- // ),
131- // color: Colors.orange,
132- image: AssetImage ("lib/assets/pizza.jpeg" ),
133- boxFit: BoxFit .cover,
134- colorFilter: new ColorFilter .mode (Colors .black.withOpacity (0.6 ), BlendMode .darken),
135- borderRadius: new BorderRadius .circular (5.0 ),
136- // border: Border.all(color: Colors.pink, width: 2.0),
137- ),
170+ // image: Image.asset("lib/assets/pizza.jpeg"),
171+ // imageOverlay: Image.asset("lib/assets/pizza.jpeg"),
138172 content: Text ("Flutter "
139173 "Flutter is Google's mobile UI framework for crafting high-quality native interfaces on iOS and Android in " ),
140174 buttonBar: GFButtonBar (
0 commit comments