Created
April 25, 2020 15:53
-
-
Save edbond/78314d0dc5ae5247d065619098fef75c 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'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue), | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
body: DefaultTextStyle( | |
style: TextStyle(fontSize: 32), | |
child: Stack(children: <Widget>[ | |
Container( | |
height: 180, | |
color: Colors.blue, | |
child: ClipRect( | |
child: Column(children: <Widget>[ | |
Text("Menu 1"), | |
Text("Menu 2"), | |
Text("Menu 3"), | |
Text("Menu 4"), | |
Text("Menu 5"), | |
]), | |
), | |
), | |
Container( | |
margin: EdgeInsets.only(top: 180), | |
height: double.infinity, | |
width: double.infinity, | |
color: Colors.pink, | |
child: Text("APP")), | |
]), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment