Skip to content

Commit 0e101c4

Browse files
committed
style: 修改样式
1 parent 21ebfe9 commit 0e101c4

File tree

1 file changed

+31
-22
lines changed

1 file changed

+31
-22
lines changed

lib/page/mine/index_1.dart

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff 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
),

0 commit comments

Comments
 (0)