larryaasen / upgrader

A Flutter package for prompting users to upgrade when there is a newer version of the app in the store.
MIT License
523 stars 258 forks source link

Is there a way to change the theme of the Alert or override it? #382

Closed Kontrano closed 3 months ago

Kontrano commented 5 months ago

I customized my app theme to work for my app's layout. However, if i want to use the upgrader package this results in an alert dialog with giant text. Is there a way to change which font styles it uses or overwrite the theme? See my image below:

image

RaadShariat commented 4 months ago

You can wrap UpgradeAlert with a Theme widget and override your app's default style by providing a ThemeData.

Kontrano commented 4 months ago

You can wrap UpgradeAlert with a Theme widget and override your app's default style by providing a ThemeData.

Thanks @RaadShariat, not sure why i didn't think of that, will give it a try as soon as possible

larryaasen commented 4 months ago

@Kontrano Did that work?

Kontrano commented 3 months ago

@Kontrano Did that work?

@larryaasen Yes i just tested it, Wrapping it in a theme widget makes it look proper again, The thing to watch out for is to wrap the child in another Theme widget to set the theme back to what it should be.