Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rounded LinearProgressIndicator in Flutter

Tags:

flutter

Is it possible to take a LinearProgressIndicator() component in flutter and have all the edges be rounded instead of square without using any libraries?

like image 909
Tino Avatar asked Jan 25 '23 13:01

Tino


1 Answers

You need to wrap it with ClipRRect

ClipRRect(
    borderRadius: BorderRadius.circular(4),
    child: LinearProgressIndicator(),
  )

ClipRRect class documentation on flutter.dev

like image 74
humazed Avatar answered Jan 28 '23 04:01

humazed