Last active
January 3, 2019 15:55
-
-
Save IshanFx/fdbc28c2c38a20583910cdfba1d713d0 to your computer and use it in GitHub Desktop.
Hero animation second page
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/material.dart'; | |
class Second extends StatelessWidget{ | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Second Screen"), | |
), | |
body: Center( | |
child: Container( | |
child: Hero( | |
tag: "mainImage", | |
child: Image.network("https://matwrites.com/wp-content/uploads/2018/03/Flutter.png"), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment