Skip to content

Instantly share code, notes, and snippets.

@mihirh19
Last active August 19, 2023 04:24
Show Gist options
  • Save mihirh19/4fc31f59a872bc47e9bec5c8e40fb935 to your computer and use it in GitHub Desktop.
Save mihirh19/4fc31f59a872bc47e9bec5c8e40fb935 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData.light(useMaterial3: true),
darkTheme: ThemeData.dark(useMaterial3: true),
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
home: const Scaffold(
body: Center(
child: Text('Hello World'),
)
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment