我想增加宽度Chip()
。我怎样才能实现这个目标?
Chip(
elevation: 6.0,
backgroundColor: Colors.white,
shape:
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12.0) ),
label: Text('09AM - 10AM'),
),
您可以使用padding
财产:
Chip(
elevation: 6.0,
backgroundColor: Colors.white,
padding: const EdgeInsets.only(left :20, right : 20),
shape:
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12.0)),
label: Text('09AM - 10AM'),
),
https://api.flutter.dev/flutter/material/Chip/padding.html https://api.flutter.dev/flutter/material/Chip/padding.html
https://api.flutter.dev/flutter/painting/EdgeInsets-class.html https://api.flutter.dev/flutter/painting/EdgeInsets-class.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)