Last active
January 15, 2021 19:11
-
-
Save felipecastrosales/f94d70e9ccbc4746ded9e7f9d39e4edd to your computer and use it in GitHub Desktop.
This file contains hidden or 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'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Stack( | |
children: [ | |
Positioned( | |
right: 25, | |
bottom: 100, | |
child: MyWidget(), | |
), | |
], | |
), | |
); | |
} | |
} | |
class MyWidget extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return FlutterLogo( | |
size: MediaQuery.of(context).size.height * .25, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In DartPad: https://dartpad.dev/f94d70e9ccbc4746ded9e7f9d39e4edd?