Make an app's supported locales configurable (#11946)
* Make an app's supported locales configurable * Added an supportedLocales.isNotEmpty assert * WidgetsApp no longer const because supportedLocales.isNotEmpty * updated per review feedback * tweaked dartdoc to restart the build * updated per review feedback * Updated per review feedback
This commit is contained in:
@@ -121,6 +121,10 @@ class StocksAppState extends State<StocksApp> {
|
||||
localizationsDelegates: <_StocksLocalizationsDelegate>[
|
||||
new _StocksLocalizationsDelegate(),
|
||||
],
|
||||
supportedLocales: const <Locale>[
|
||||
const Locale('en', 'US'),
|
||||
const Locale('es', 'ES'),
|
||||
],
|
||||
debugShowMaterialGrid: _configuration.debugShowGrid,
|
||||
showPerformanceOverlay: _configuration.showPerformanceOverlay,
|
||||
showSemanticsDebugger: _configuration.showSemanticsDebugger,
|
||||
|
||||
Reference in New Issue
Block a user