Skip to content

Instantly share code, notes, and snippets.

@kennedisimbolo
Created September 14, 2020 14:47
Show Gist options
  • Save kennedisimbolo/76a643a44d160cf11d403cb4ea6ace1c to your computer and use it in GitHub Desktop.
Save kennedisimbolo/76a643a44d160cf11d403cb4ea6ace1c to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'First App',
home: Scaffold(
appBar: AppBar(
title: Text('Program Column dan Row'),
backgroundColor: Colors.green,
),
body: new Center(
child: new Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
IconButton(
icon: Icon(IconData(0xe31e, fontFamily: 'MaterialIcons')
, size: 40.00,color: Colors.green),
onPressed: () {},
),
Text("Laptop"),
IconButton(
icon: Icon(IconData(0xe897, fontFamily: 'MaterialIcons'), size: 40.00,color: Colors.green),
onPressed: () {},
),
Text("Lock"),
],
),
new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
IconButton(
icon: Icon(IconData(0xe02c, fontFamily: 'MaterialIcons')
, size: 40.00,color: Colors.blue),
onPressed: () {},
),
Text("Movie"),
IconButton(
icon: Icon(IconData(0xe40b, fontFamily: 'MaterialIcons'), size: 40.00,color: Colors.blue),
onPressed: () {},
),
Text("Panorama"),
],
),
new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
IconButton(
icon: Icon(IconData(0xe55f, fontFamily: 'MaterialIcons'), size: 40.00,color: Colors.red),
onPressed: () {},
),
Text("Place"),
IconButton(
icon: Icon(IconData(0xe160, fontFamily: 'MaterialIcons')
, size: 40.00,color: Colors.red),
onPressed: () {},
),
Text("Report"),
],
),
new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
IconButton(
icon: Icon(IconData(0xe80c, fontFamily: 'MaterialIcons'), size: 40.00,color: Colors.orange),
onPressed: () {},
),
Text("School"),
IconButton(
icon: Icon(IconData(0xe80d, fontFamily: 'MaterialIcons'), size: 40.00,color: Colors.orange),
onPressed: () {},
),
Text("Share"),
],
),
]),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment