When the code is:
UpgradeAlert(
child: Scaffold...
)
Application detects new version in PlayStore and shows prompt.
When I add parameters:
UpgradeAlert(
upgrader: Upgrader( messages: UpgraderMessages(code: 'pl'),
showLater: false,
showIgnore: false,
durationUntilAlertAgain: Duration(minutes: 1), ),
child: Scaffold... )
Application stops showing update alert, why?
Without "upgrader: Upgrader(...)," line works perfectly.
enter image description here
I solved the problem, when I declare parameters in variable:
var upgrader = Upgrader(
showLater: false,
showReleaseNotes: false,
messages: MessagesUpgrader(),
)
and...
UpgradeAlert(
upgrader: upgrader,
Instead of placing it directly in UpgradeAlert
UpgradeAlert(
upgrader: Upgrader( messages: UpgraderMessages(code: 'pl'),
showLater: false,
showIgnore: false,
durationUntilAlertAgain: Duration(minutes: 1), ),
child: Scaffold... )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With