How to add a border/corner radius to a LinearProgressIndicator in Flutter?
问题 I am trying to add a border radius to a LinearProgressIndicator in Flutter. When I replace the LinearProgressIndicator with another widget (e.g. Text ) in the code below, it works, as expected. Container( decoration: new BoxDecoration( borderRadius: new BorderRadius.all(const Radius.circular(20.0))), child: LinearProgressIndicator( value: _time, ), ) 回答1: For exact your needs follow this dependency https://pub.dev/packages/percent_indicator Try this template code child: Padding( padding: