Skip to content

Commit

Permalink
fix: minor hack to allow non initialised locales
Browse files Browse the repository at this point in the history
  • Loading branch information
johsoe committed Sep 3, 2021
1 parent 13d77db commit db374e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/lib/nstack.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ class _NStackInitState extends State<NStackInitWidget> {
static bool _initialized = false;

void setupNStack(BuildContext context) {
final locale = Localizations.localeOf(context);
//final locale = Localizations.localeOf(context);
final nstack = NStackWidget.of(context);
nstack.appOpen(locale);
nstack.appOpen(Locale("en-UK"));
}

@override
Expand Down

0 comments on commit db374e1

Please sign in to comment.