Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() => runApp(Home());
- class Home extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- home: Scaffold(
- body: Column(
- children: <Widget>[
- Padding(padding: EdgeInsets.all(30)),
- Row(
- children: <Widget>[
- Expanded(child: Text("Hi Gilang"), flex: 1),
- Expanded(child: Text("Search", textAlign: TextAlign.end), flex: 1),
- ],
- ),
- Row(
- children: <Widget>[
- Expanded(child: Text("Logo Cuaca"), flex: 1),
- Expanded(
- child: Column(
- children: <Widget>[Text("Kota"), Text("Suhu")],
- ),
- flex: 1)
- ],
- ),
- Row(
- children: <Widget>[
- Expanded(flex: 1, child: Center(child: Text("Hari")))
- ],
- ),
- Row(
- children: <Widget>[
- Expanded(flex: 1, child: Center(child: Text("Tanggal")))
- ],
- ),
- Row(
- children: <Widget>[
- Expanded(
- flex: 1,
- child: Center(
- child: RawMaterialButton(
- child: Text("Show Button"),
- onPressed: () {},
- )))
- ],
- ),
- ],
- )));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement