Skip to content

Instantly share code, notes, and snippets.

@nuelsoft
Last active March 31, 2020 19:07
Show Gist options
  • Save nuelsoft/a2669373d3e3b1d364ce512e1a9f9e88 to your computer and use it in GitHub Desktop.
Save nuelsoft/a2669373d3e3b1d364ce512e1a9f9e88 to your computer and use it in GitHub Desktop.
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