Skip to content

Instantly share code, notes, and snippets.

@Wizpna
Last active August 11, 2019 22:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wizpna/9d94e2e4dfaf3f181f617480ba7813dd to your computer and use it in GitHub Desktop.
Save Wizpna/9d94e2e4dfaf3f181f617480ba7813dd to your computer and use it in GitHub Desktop.
9 Easiest Steps to Build Photo Diary App Using Flutter and Cloudinary
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