Created
July 27, 2022 18:29
-
-
Save romanejaquez/f49f4a1e414da7283907b000f0658f45 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'; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| home: Scaffold( | |
| backgroundColor: Colors.white, | |
| body: Row( | |
| children: [ | |
| NavColumn(), | |
| Spacer(), | |
| ] | |
| ), | |
| ), | |
| ); | |
| } | |
| } | |
| class NavColumn extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Container( | |
| width: 200, | |
| height: MediaQuery.of(context).size.height, | |
| color: Colors.red, | |
| child: Column( | |
| children: List.generate( | |
| 4, (index) { | |
| return Column( | |
| children: [ | |
| Container( | |
| height: 20, | |
| color: Colors.white, | |
| child: Container( | |
| decoration: const BoxDecoration( | |
| color: Colors.red, | |
| borderRadius: BorderRadius.only(bottomRight: Radius.circular(20)) | |
| ) | |
| ) | |
| ), | |
| Container( | |
| color: Colors.red, | |
| child: Container( | |
| margin: const EdgeInsets.only(left: 20), | |
| padding: const EdgeInsets.only(top: 10, bottom: 10, left: 20), | |
| decoration: const BoxDecoration( | |
| color: Colors.white, | |
| borderRadius: BorderRadius.only( | |
| topLeft: Radius.circular(20), | |
| bottomLeft: Radius.circular(20) | |
| ) | |
| ), | |
| child: Row( | |
| children: const [ | |
| Icon(Icons.cloud), | |
| SizedBox(width: 10), | |
| Text('Menu Item') | |
| ] | |
| ) | |
| ) | |
| ), | |
| Container( | |
| height: 20, | |
| color: Colors.white, | |
| child: Container( | |
| decoration: const BoxDecoration( | |
| color: Colors.red, | |
| borderRadius: BorderRadius.only(topRight: Radius.circular(20)) | |
| ) | |
| ) | |
| ), | |
| ] | |
| ); | |
| } | |
| ) | |
| ) | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment