Created
June 4, 2021 10:01
-
-
Save adiraden/e310449ebb7496d909ab8ed6749138ff 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
| // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Demo', | |
| debugShowCheckedModeBanner: false, | |
| theme: ThemeData( | |
| primarySwatch: Colors.blue, | |
| ), | |
| home:MyApps(), | |
| ); | |
| } | |
| } | |
| class MyApps extends StatefulWidget{ | |
| @override | |
| MyAppsState createState() => MyAppsState(); | |
| } | |
| class MyAppsState extends State<MyApps>{ | |
| @override | |
| Widget build(BuildContext context){ | |
| return Scaffold( | |
| appBar : AppBar(title:Text("App"),), | |
| body:Column( | |
| mainAxisAlignment:MainAxisAlignment.spaceBetween, | |
| children:<Widget>[ | |
| Container( | |
| child:Text("Home",style:TextStyle(fontSize:30,)), | |
| color:Colors.lime, | |
| padding:EdgeInsets.all(23.0), | |
| // decoration:BoxDecoration( | |
| // borderRadius:BorderRadius.circular(12.0),) | |
| ),//comteiner 1 | |
| Container( | |
| child:Text("menu"), | |
| color:Colors.lime, | |
| padding:EdgeInsets.all(16.0) | |
| ),//comteiner 1 | |
| ], | |
| ));//Scaffold | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment