Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxanna/4856dfe92c13abf40a378ab50d556674 to your computer and use it in GitHub Desktop.
Save foxanna/4856dfe92c13abf40a378ab50d556674 to your computer and use it in GitHub Desktop.
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) => MaterialApp(
localizationsDelegates: [
ExampleLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
supportedLocales: ExampleLocalizations.supportedLocales,
home: const MyHomePage(),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment