Tuesday, March 19, 2019

Membuat Row Dal Column Pada flutter part 2

import 'package:flutter/material.dart';
void main(){
  runApp(new MaterialApp(
    title: "lihatcode.blogspot.com",    home: new HalamanSatu(),  ));}

class HalamanSatu extends StatelessWidget {
  @override  Widget build(BuildContext context) {
    return new Scaffold(
      backgroundColor: Colors.yellow[200],      appBar: new AppBar(
        backgroundColor: Colors.red[800],        leading: new Icon(Icons.home),        title: new Center(
          child: new Text("Coding Days"),        ),        actions: <Widget>[
          new Icon(Icons.search)
        ],      ),            body: new Container(
        child: new Column(
          children: <Widget>[
          new Icon(
            Icons.local_pizza,            size: 70.0,            color: Colors.red,          ),          new Row(
            children: <Widget>[
              new Icon(
                Icons.donut_large,                size: 70.0,                 color: Colors.orange,              ),              new Icon(
                Icons.donut_large,                size: 70.0,                color: Colors.orange,              ),              new Icon(
                Icons.donut_large,                size: 70.0,                color: Colors.orange,              )
            ],          ),          new Icon(
            Icons.donut_large,            size: 70.0,            color: Colors.red,          )
          ],
        )
      ),
    );  }
}

No comments:

Post a Comment

test

import 'dart:async' ; import 'package:flutter/material.dart' ; class MyBeginner extends StatefulWidget { var...