Skip to content

Instantly share code, notes, and snippets.

@Wizpna Wizpna/fullScreen.dart
Last active Aug 11, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.