Created
September 3, 2018 13:59
-
-
Save rohan20/5d8d1622d5a0a56d747f0f37d6bc8699 to your computer and use it in GitHub Desktop.
flutter-localizations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: "Flutter Ecommerce App", | |
debugShowCheckedModeBanner: false, | |
home: new SplashScreen(), | |
routes: widget.routes, | |
localizationsDelegates: [ | |
_localeOverrideDelegate, | |
const AppTranslationsDelegate(), | |
//provides localised strings | |
GlobalMaterialLocalizations.delegate, | |
//provides RTL support | |
GlobalWidgetsLocalizations.delegate, | |
], | |
supportedLocales: application.supportedLocales(), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment