larryaasen / upgrader

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

UpgradeCard does not work with dark theme #322

Open andynewman10 opened 11 months ago

andynewman10 commented 11 months ago

Version: upgrader 8.1.0.

upgrade_card.dart has the following code:

Card(
  color: Colors.white, // this line should be deleted
  ...

This code causes the card's background to be white in all circumstances, ie. with light AND dark theme.

When the dark theme is enabled on the phone, the card background is white, but text is also white (respecting the dark theme white text color) and can't be seen, making the upgrader useless.

Deleting the color: Colors.white line will make the Card respect the background color of the theme.