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: Container(child: Icon(Icons.search)), flex: 1),
- ],
- ),
- Row(
- children: <Widget>[
- Expanded(child: Image.asset("assets/matahari.jpg"), 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: Container(
- decoration: BoxDecoration(
- border: Border.all(color: Colors.green),
- color: Colors.green,
- borderRadius: BorderRadius.circular(20)),
- child: Padding(padding:
- EdgeInsets.only(top: 10, bottom: 10, left: 30, right: 30),
- child: Text("Show Weathers", style: TextStyle(color: Colors.white),)),
- ),
- onPressed: () {})))
- ],
- ),
- ],
- )));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement