Skip to content

Instantly share code, notes, and snippets.

@lucalves
Created September 26, 2019 00:45
Show Gist options
  • Save lucalves/aa1c4b54008b8ff7c11ecb1288a38c29 to your computer and use it in GitHub Desktop.
Save lucalves/aa1c4b54008b8ff7c11ecb1288a38c29 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class StackFlutter extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Flutter Stack')),
body: incluiStack(),
);
}
}
Widget incluiStack() {
return Stack(
children: <Widget>[
Image.network(
'https://i.imgur.com/fzgwYzq.png',
width: double.infinity,
height: double.infinity,
fit: BoxFit.cover,
),
RaisedButton(
shape: RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(5.0),
),
child: Text('Clique para prosseguir'),
onPressed: () {},
),
],
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment