import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text("Title Bar"),
centerTitle: true,
),
body: Row(
children: [
Expanded(
flex: 3,
child: Container(
padding: const EdgeInsets.all(30.0),
color: Color(0xFFFF0000),
child: Text("1"),
),
),
Expanded(
flex: 2,
child: Container(
padding: const EdgeInsets.all(30.0),
color: Color(0xFFFF00FF),
child: Text("2"),
),
),
Expanded(
flex: 1,
child: Container(
padding: const EdgeInsets.all(30.0),
color: Color(0xFFFFDDAA),
child: Text("3"),
),
),
],
),
),
),
);
}
Output:
0 comments:
Post a Comment