Flutter 组件 Wrap
xxxixxxx

Wrap

流式布局

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Wrap(
spacing: 10,
runSpacing: 10,
alignment: WrapAlignment.end,
children: [
MyButton('哈哈哈'),
MyButton('阿斯顿萨达撒'),
MyButton('苏打水萨达撒'),
MyButton('阿瑟'),
MyButton('萨发送个人舒服舒服当发送的'),
MyButton('title'),
//MARK: MaterialButton
MaterialButton(
child: Text('MaterialButton 风格 btn'),
shape: CircleBorder(side: BorderSide(width: 100)),
color: Colors.orange,
onPressed: () {
print('object');
},
),
//MARK:IconButton
IconButton(icon: Icon(Icons.ac_unit), onPressed: null),
//MARK: FlatButton
FlatButton(onPressed: () {}, child: Text('扁平化按钮')),
FloatingActionButton(
onPressed: () {},
child: Text('FloatingActionButton'),
)
],
);
  • Post title:Flutter 组件 Wrap
  • Post author:xxxixxxx
  • Create time:2020-12-29 10:35:00
  • Post link:https://xxxixxx.github.io/2020/12/29/400-Flutter组件Wrap/
  • Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
 Comments