Jaagdish47

3. ) Designing the mobile app to implement different Layouts.

Nov 24th, 2024
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.93 KB | Source Code | 0 0
  1. //3.3. ) Designing the mobile app to implement different Layouts.
  2. import 'package:flutter/material.dart';
  3.  
  4. void main() {
  5.   runApp(MyApp());
  6. }
  7.  
  8. class MyApp extends StatelessWidget {
  9.   @override
  10.   Widget build(BuildContext context) {
  11.     return MaterialApp(
  12.         title: "My Application",
  13.         debugShowCheckedModeBanner: true,
  14.         home: Scaffold(
  15.             body: Padding(
  16.                 padding: const EdgeInsets.all(20.0),
  17.                 child: Column(
  18.                   mainAxisAlignment: MainAxisAlignment.center,
  19.                   children: [
  20.                     Row(
  21.                       mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  22.                       children: [
  23.                         Container(
  24.                           height: 100,
  25.                           width: 100,
  26.                           color: Colors.teal,
  27.                         ),
  28.                         Container(
  29.                             height: 100, width: 100, color: Colors.teal[600]),
  30.                         Container(
  31.                             height: 100, width: 100, color: Colors.teal[900]),
  32.                       ],
  33.                     ),
  34.                     Row(
  35.                       mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  36.                       children: [
  37.                         Container(
  38.                           height: 100,
  39.                           width: 100,
  40.                           color: Colors.amberAccent,
  41.                         ),
  42.                         Container(
  43.                             height: 100,
  44.                             width: 100,
  45.                             color: Colors.amberAccent[100]),
  46.                         Container(
  47.                             height: 100,
  48.                             width: 100,
  49.                             color: Colors.amberAccent[200]),
  50.                       ],
  51.                     )
  52.                   ],
  53.                 ))));
  54.   }
  55. }
  56.  
Advertisement
Add Comment
Please, Sign In to add comment