Created
July 12, 2017 16:35
-
-
Save collinjackson/9520e89c9bfab51ecb12d85e7a368c4e to your computer and use it in GitHub Desktop.
This file contains hidden or 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/material.dart'; | |
class MyHomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new Scaffold( | |
body: new Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
new Image.network('http://i.imgur.com/4wvcG03.png'), | |
new Opacity( | |
opacity: 0.5, | |
child: new Image.network( | |
'https://flutter.io/images/flutter-mark-square-100.png', | |
), | |
), | |
], | |
), | |
); | |
} | |
} | |
void main() { | |
runApp(new MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
title: 'Flutter Demo', | |
home: new MyHomePage(), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment