【发布时间】:2020-07-24 04:28:16
【问题描述】:
我想在我的 Row 小部件上显示完成的进度。 像这样:
(忽略箭头)。
目前,我在行下方添加了线性进度。像这样:
有什么方法可以实现吗? 这是我当前的代码:
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
Column(
children: <Widget>[
Text("Raised",style: TextStyle(fontSize: 18),),
SizedBox(height: 10,),
Text(raisedAmount.toString()+"₹",style: TextStyle(fontSize: 26,fontWeight: FontWeight.bold),)
],
),
Column(
children: <Widget>[
Text("Target",style: TextStyle(fontSize: 18),),
SizedBox(height: 10,),
Text(targetAmount.toString()+"₹",style: TextStyle(fontSize: 26,fontWeight: FontWeight.bold),)
],
)
],
),
LinearProgressIndicator(
value: progress,
backgroundColor: Colors.grey[200],
valueColor: AlwaysStoppedAnimation<Color>(
Colors.deepOrange[200],
),
),
【问题讨论】:
标签: flutter dart android-widget flutter-layout