Flutter UI

AppBar

SystemChrome

BottomNavigationBar

容器

SizeBox
FittedBox

ClipRRect

Gradient

1
2
3
4
5
6
7
8
9
10
11
12
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
stops: [0.02, 0.45, 1],
colors: [
Color.fromRGBO(248, 120, 91, 1),
Color.fromRGBO(251, 117, 86, 1),
Color.fromRGBO(254, 193, 178, 1),
],
),
),

Button 按钮

ElevatedButton

1
2
3
4
5
6
7
8
9
10
11
ElevatedButton(
minimumSize: Size(50, 36),
onPressed: () => submit(context, order),
child: Text('继续测试', style: TextStyle(fontSize: 10)),
style: OutlinedButton.styleFrom(
primary: primaryColor,
minimumSize: Size(50, 36),
shape: StadiumBorder(side: BorderSide(color: primaryColorHalf)),
textStyle: TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
)
)

Theme 主题

color

typography

Auxiliary 辅助功能

参考