Created
May 1, 2023 14:29
-
-
Save rubywai/28cb047ad08e2dee795d0059be7faea5 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'; | |
| //Google => Material | |
| //Iphone => Cupertino | |
| //Widget => less ,ful | |
| //debug //release // hybrid | |
| //Container | |
| //project file network memory | |
| //Row Column Stack ListVeiw GridView | |
| //variable List Map Set | |
| // 6 3 3 | |
| void main() { | |
| runApp(const MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| home: FirstApp(), | |
| )); | |
| } | |
| class FirstApp extends StatelessWidget { | |
| const FirstApp({Key? key}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar(), | |
| body: Column(children: [ | |
| Expanded( | |
| flex: 6, | |
| child: Container( | |
| color: Colors.red, | |
| ), | |
| ), | |
| Expanded( | |
| flex: 3, | |
| child: Container( | |
| color: Colors.blue, | |
| ), | |
| ), | |
| Flexible( | |
| flex: 3, | |
| child: Container( | |
| color: Colors.green, | |
| ), | |
| ) | |
| ],), | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment