diegoveloper / flutter_percent_indicator

Flutter percent indicator library
BSD 2-Clause "Simplified" License
691 stars 206 forks source link

LinearPercentIndicator width 100% #108

Closed mdmota closed 3 years ago

mdmota commented 3 years ago

How to define the LinearPercentIndicator with width 100% in relation to the container in which it is inserted?

diegoveloper commented 3 years ago

Did you try with Container + LayoutBuilder ? in layout builder you can get the constraints.

mdmota commented 3 years ago

Can you give me an example?

diegoveloper commented 3 years ago

https://api.flutter.dev/flutter/widgets/LayoutBuilder-class.html

ali9653 commented 3 years ago

How to define the LinearPercentIndicator with width 100% in relation to the container in which it is inserted?

if you were successful in achieving this can you please share your code?

GuilhermeDemoliner commented 3 years ago

You can put LinearPercentIndicator inside a row with flexible. Row( children:[ Flexible( child: LinearPercentIndicator() ) ])