File tree Expand file tree Collapse file tree 1 file changed +31
-22
lines changed Expand file tree Collapse file tree 1 file changed +31
-22
lines changed Original file line number Diff line number Diff line change @@ -133,32 +133,41 @@ class _IndexState extends State<Index> {
133133 children: < Widget > [
134134 Container (
135135 decoration: BoxDecoration (
136- borderRadius: BorderRadius .only (
137- bottomLeft: Radius .circular (10 ),
138- bottomRight: Radius .circular (10 )
139- ),
140- color: Colors .red,
141- ),
136+ borderRadius: BorderRadius .only (
137+ bottomLeft: Radius .circular (10 ),
138+ bottomRight: Radius .circular (10 ),
139+ ),
140+ color: Colors .red,
141+ gradient: LinearGradient (
142+ begin: Alignment .centerLeft,
143+ end: Alignment .centerRight,
144+ colors: [Colors .red, Colors .blue])),
142145 height: 240 ,
143146 child: Stack (
144147 alignment: const FractionalOffset (0.8 , 0.8 ),
145148 children: < Widget > [
146- Row (
147- children: < Widget > [
148- Image .network (
149- 'https://raw.githubusercontent.com/efoxTeam/flutter-ui/master/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png' ,
150- width: 80.0 ,
151- height: 80.0 ,
152- fit: BoxFit .cover,
153- ),
154- SizedBox (
155- width: 10 ,
156- ),
157- Text (
158- 'Hello Guest' ,
159- style: TextStyle (color: Colors .white),
160- )
161- ],
149+ Center (
150+ child: Column (
151+ mainAxisAlignment: MainAxisAlignment .center,
152+ children: < Widget > [
153+ Opacity (
154+ child: Image .network (
155+ 'https://raw.githubusercontent.com/efoxTeam/flutter-ui/master/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png' ,
156+ width: 80.0 ,
157+ height: 80.0 ,
158+ fit: BoxFit .cover,
159+ ),
160+ opacity: 1 ,
161+ ),
162+ SizedBox (height: 10 ,),
163+ Text ("Flutter-UI" ,
164+ style: TextStyle (
165+ color: Colors .white,
166+ fontSize: 26 ,
167+ fontWeight: FontWeight .bold
168+ ),)
169+ ],
170+ ),
162171 )
163172 ],
164173 ),
You can’t perform that action at this time.
0 commit comments