Skip to content

Instantly share code, notes, and snippets.

@muyiwexy
Created November 28, 2023 22:13
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 muyiwexy/3ee7c27341c73ff33b42d4796fbd591a to your computer and use it in GitHub Desktop.
Save muyiwexy/3ee7c27341c73ff33b42d4796fbd591a to your computer and use it in GitHub Desktop.
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await dotenv.load(fileName: '.env');
runApp(
await ProviderLocator.getProvider(
MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),
),
),
),
useMaterial3: true,
),
home: HomePage(),
),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment