Closed arammarm closed 6 months ago
class MyUpgraderMessages extends UpgraderMessages { @override String get buttonTitleIgnore => 'My Ignore'; }
UpgradeAlert(Upgrader(messages: MyUpgraderMessages()));
This is simple, just like @DanilKarasev said, create a custom class, say MyOwnUpgraderMessage name it whatever you want to and extend it from UpgraderMessages, then override the texts you want to change.
You can currently override the following texts: body, buttonTitleIgnore, buttonTitleLater, buttonTitleUpdate, prompt, releaseNotes, and title;
Sample:
@override
String get releaseNotes => "What's New?";
So our class will now be:
class MyOwnUpgraderMessage extends {
@override
String get releaseNotes => "What's New?";
}
Viola!