Created
June 5, 2019 16:53
-
-
Save sharmadhiraj/82aabf48220bd0f24a10707e95633bd8 to your computer and use it in GitHub Desktop.
Flutter web app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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