Created
September 26, 2019 00:45
-
-
Save lucalves/aa1c4b54008b8ff7c11ecb1288a38c29 to your computer and use it in GitHub Desktop.
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 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