Sebelumnya baca tutorial : LATIHAN FLUTTER WEEK#1 : MEMECAH KODE
hal_icon.dart
import 'package:flutter/material.dart'; class hal_icon extends StatelessWidget{ @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar( title: new Text('Halaman Icon'), backgroundColor: Colors.blue[300], ), body: new Center( child: Container( color: Colors.blue[900], width: 400.0, height: 400.0, child: new Center( child: new Icon( Icons.android, color: Colors.white, size: 80.0, ), ), ) ), ); } }
