Skip to content

Instantly share code, notes, and snippets.

@muyiwexy
Created November 28, 2023 22:13
Show Gist options
  • 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