Skip to content

Instantly share code, notes, and snippets.

@legalcodes
Created August 23, 2019 22:02
Show Gist options
  • Save legalcodes/eb7b5438eeac91dd9c40ebdc46af85d4 to your computer and use it in GitHub Desktop.
Save legalcodes/eb7b5438eeac91dd9c40ebdc46af85d4 to your computer and use it in GitHub Desktop.
wotw52_example_1
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