flutter 린트 적용
This commit is contained in:
1 parent
466e7f1e54
commit
3eb7ed01ee
8 files changed
+35
-73
No files matched your search
@@ -38,11 +38,10 @@ class LanguageSelector extends StatelessWidget {
|
||||
}
|
||||
LocaleStorage.write(value);
|
||||
await context.setLocale(Locale(value));
|
||||
if (!context.mounted) return;
|
||||
final uri = GoRouterState.of(context).uri;
|
||||
final target = buildLocalizedPath(value, uri);
|
||||
if (context.mounted) {
|
||||
context.go(target);
|
||||
}
|
||||
context.go(target);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user