Last active
August 11, 2019 22:16
-
-
Save Wizpna/9d94e2e4dfaf3f181f617480ba7813dd to your computer and use it in GitHub Desktop.
9 Easiest Steps to Build Photo Diary App Using Flutter and Cloudinary
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:cloudinary/data.dart'; | |
import 'package:flutter/material.dart'; | |
class FullScreen extends StatelessWidget { | |
final Resources resources; | |
FullScreen(this.resources); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.transparent, | |
body: Stack( | |
fit: StackFit.expand, | |
children: <Widget>[ | |
Hero( | |
tag: resources.secureUrl, | |
child: Image.network( | |
resources.secureUrl, | |
fit: BoxFit.fitWidth, | |
), | |
), | |
new Align( | |
alignment: Alignment.topCenter, | |
child: new Column( | |
mainAxisAlignment: MainAxisAlignment.start, | |
mainAxisSize: MainAxisSize.min, | |
children: <Widget>[ | |
new AppBar( | |
elevation: 0.0, | |
backgroundColor: Colors.transparent, | |
leading: IconButton( | |
icon: Icon( | |
Icons.arrow_back, | |
color: Colors.white, | |
), | |
onPressed: () { | |
Navigator.of(context).pop(); | |
}), | |
) | |
], | |
), | |
), | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment