Skip to content

Instantly share code, notes, and snippets.

@dhruvilp
Last active June 30, 2020 17:17
Show Gist options
  • Save dhruvilp/b8bd80814ad700a9d461be877be1ea1e to your computer and use it in GitHub Desktop.
Save dhruvilp/b8bd80814ad700a9d461be877be1ea1e to your computer and use it in GitHub Desktop.
Flutter Playgound
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: MyWidget(),
),
),
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Text('Hello, World!', style: Theme.of(context).textTheme.headline4);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment