LATIHAN FLUTTER WEEK#1 : COLOR CLASS

LATIHAN FLUTTER WEEK#1 : COLOR CLASS

Sebelumnya baca tutorial : LATIHAN FLUTTER WEEK#1 : SCAFFOLD CLASS

main.dart

import 'package:flutter/material.dart';

void main(){
  runApp(
    new MaterialApp(
      home: new Widget1(),
    )
  );
}

 

class Widget1 extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      backgroundColor: Colors.grey,
      appBar: new AppBar(
        title: new Text("FLutter App #1"),
        backgroundColor: Colors.red,
      ),
      body: new Center(
        child: new Text(
            "meetAp Flutter Basic",
             style: TextStyle(color: Colors.white),
        ),
      ),
    );
  }
}

 

colors.class
color palettes
color

Semoga Bermanfaat

Flutter Developer