Designing the mobile app to implement different Layouts

  import 'package:flutter/material.dart';

 void main() {

 runApp(Demoapp());

 class Demoapp extends StatelessWidget {

 @override

 Widget build(BuildContext context) {  return MaterialApp(

 title: 'My Application',

 debugShowCheckedModeBanner: true,  home: Scaffold(

 body: Padding(  padding: const EdgeInsets.all(20.0),  child: Column(

 mainAxisAlignment: MainAxisAlignment.center,  children: [

 Row(  mainAxisAlignment: MainAxisAlignment.spaceEvenly,  children: [

 Container(  height: 100,  width: 100,  color: Colors.red,

 ),

 Container(  height: 100, width: 100, color: Colors.red[600]),

 Container(  height: 100, width: 100, color: Colors.red[900]),

 ],

 ),

 Row(  mainAxisAlignment: MainAxisAlignment.spaceEvenly,  children: [

 Container(  height: 100,  width: 100,  color: Colors.amberAccent,

 ),

 Container(  height: 100,  width: 100,  color: Colors.amberAccent[100]),

 Container(  height: 100,  width: 100,  color: Colors.amberAccent[200]),

] ,

] ,

                    ))))   ;

}  

Comments

Popular posts from this blog

Designing the mobile app to implement the state management.

Designing the mobile app to implement different widgets