[英]Is it possible to change the length of the underline?
這就是我所擁有的,我希望我的下划線長度更短且居中。
TextButton(
child: Text ('Beverages', style: TextStyle(
fontFamily: 'Milkshake', fontSize: 60,
shadows: [Shadow(color: Colors.white, offset: Offset(0, -20),),],
color: Colors.transparent,
decoration: TextDecoration.underline,
decorationColor: Colors.white, decorationThickness: 0.3),),
style: TextButton.styleFrom (
backgroundColor: Color (0xFF2D4067),),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => FourthRoute(),),);
}
),
是的,為此您應該使用Divider
小部件,並將indent
設置為您想要的值
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.