bluemix / Gradient-Widgets

Flutter widgets wrapped with gradients
Apache License 2.0
348 stars 48 forks source link

How to handle Dynamic width? #10

Closed KingWu closed 4 years ago

KingWu commented 5 years ago
螢幕截圖 2019-07-19 下午3 52 42

I built a horizontal list. When the button is disabled, i use outline button. When the button is enabled, i use gradient button.

But, i found that the gradient button has limit width. How to set it to support dynamic width?

nroehling commented 4 years ago

got the same problem. Try it with:

increaseWidthBy: double.infinity

GradientButton(
                        child: Text('Anmelden'),
                        callback: () {},
                        gradient: Gradients.backToFuture,
                        shadowColor: Gradients.backToFuture.colors.last
                            .withOpacity(0.25),
                            increaseWidthBy: double.infinity,
                      ),
bluemix commented 4 years ago

@KingWu I hope @ecoparts provided a solution to your problem.

ashskr1984 commented 3 years ago

facing same problem image