Skip to content

Instantly share code, notes, and snippets.

@sharmadhiraj
Created June 5, 2019 16:53
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 sharmadhiraj/82aabf48220bd0f24a10707e95633bd8 to your computer and use it in GitHub Desktop.
Save sharmadhiraj/82aabf48220bd0f24a10707e95633bd8 to your computer and use it in GitHub Desktop.
Flutter web app
import 'package:flutter_web/material.dart';
void main() => runApp(App());
class App extends MaterialApp {
@override
String get title => "Chuck Norris Jokes";
@override
ThemeData get theme => ThemeData(primarySwatch: Colors.blue);
@override
Widget get home => HomePage();
}
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Chuck Norris Jokes")),
body: Center(child:Text("Chuck Norris Jokes")),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment