0% found this document useful (0 votes)
8 views3 pages

TP Mobile

Uploaded by

harizi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

TP Mobile

Uploaded by

harizi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

import 'package:flutter/material.

dart';

void main() {
runApp(Myapp());
}

class Myapp extends StatelessWidget {


@override
Widget build(BuildContext context) {
return (MaterialApp(home: HomePage()));
}
}

class HomePage extends StatelessWidget {


@override
Widget build(BuildContext context) {
return (Scaffold(
appBar: AppBar(
title: const Text('Mon Application'),
),
drawer: Drawer(),
body: Column(
children: [
Container(
child: const Text(
"One",
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
fontSize: 25),
),
height: 180,
width: double.infinity,
margin: const EdgeInsets.only(left: 20, right: 10,
top: 10),
padding: const EdgeInsets.symmetric(vertical: 60),
color: Colors.red),
Container(
child: const Text(
"Tow",
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
fontSize: 25),
),
margin: const EdgeInsets.only(left: 20, right: 10,
top: 10),
padding: const EdgeInsets.symmetric(vertical: 60),
height: 180,
width: double.infinity,
color: Colors.green),
Container(
child: const Text(
"Tree",
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
fontSize: 25),
),
padding: const EdgeInsets.symmetric(vertical: 60),
margin: const EdgeInsets.only(left: 20, right: 10,
top: 10),
height: 180,
width: double.infinity,
color: Colors.blue),
],
)));
}
}

You might also like