Last active
March 31, 2020 19:07
-
-
Save nuelsoft/a2669373d3e3b1d364ce512e1a9f9e88 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'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
backgroundColor: Colors.blue, | |
body: MyWidget(), | |
), | |
); | |
} | |
} | |
class MyWidget extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Stack(children: [ | |
FractionallySizedBox( | |
heightFactor: 0.9, | |
widthFactor: 1, | |
child: Container( | |
child: FlutterLogo(), | |
decoration: BoxDecoration( | |
color: Colors.white, | |
borderRadius: BorderRadius.only( | |
bottomRight: Radius.circular(20), | |
bottomLeft: Radius.circular(20), | |
), | |
), | |
), | |
), | |
Padding( | |
padding: EdgeInsets.all(18), | |
child: Align( | |
alignment: Alignment.bottomCenter, | |
child: Text("www.reppnez.org", style: TextStyle(color: Colors.white)), | |
), | |
) | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment