Skip to content

Instantly share code, notes, and snippets.

@datafoya
Last active June 17, 2019 23:31
Show Gist options
  • Save datafoya/557124d7e69108d9c2a49feb56223579 to your computer and use it in GitHub Desktop.
Save datafoya/557124d7e69108d9c2a49feb56223579 to your computer and use it in GitHub Desktop.
Test
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 MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Image.network('https://github.com/flutter/website/blob/master/examples/layout/sizing/images/pic1.jpg'),
Image.network('https://github.com/flutter/website/blob/master/examples/layout/sizing/images/pic2.jpg'),
Image.network('https://github.com/flutter/website/blob/master/examples/layout/sizing/images/pic3.jpg'),
],
);
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