Skip to content

Instantly share code, notes, and snippets.

@ijoschek ijoschek/.\lib\main.dart Secret
Last active Aug 22, 2019

Embed
What would you like to do?
flutter_gridview_tut
//...
class _MyHomePageState extends State<MyHomePage> {
_openImage(context, index) async {
showDialog(
context: context,
builder: (a) => AlertDialog(
title: Text("Look at this! Very Nice!"),
content: FadeInImage.memoryNetwork(
placeholder: kTransparentImage,
image: 'https://picsum.photos/id/$index/512'),
actions: <Widget>[
FlatButton(
onPressed: () {
_dismissDialog(context);
},
child: Text('Close'))
],
),
);
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.