Created
August 23, 2019 22:02
-
-
Save legalcodes/eb7b5438eeac91dd9c40ebdc46af85d4 to your computer and use it in GitHub Desktop.
wotw52_example_1
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'; | |
import 'package:flutter_web_test/flutter_web_test.dart'; | |
import 'package:flutter_web_ui/ui.dart' as ui; | |
class Example extends StatelessWidget { | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Container( | |
child: Text('Boring'), | |
color: Colors.green, | |
) | |
); | |
} | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Example(), | |
); | |
} | |
} | |
Future<void> main() async { | |
await ui.webOnlyInitializePlatform(); | |
runApp(MyApp()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment