Flutter中Button如何去掉默认的外边距 和 内边距
默认情况下,Button是带有内边距的和外边距的。
TextButton(
style: TextButton.styleFrom(
backgroundColor: Colors.red,
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
),
child: Text("TextButton 1",
style: TextStyle(
color: Colors.white,
)),
onPressed: () {
},