Flutter Tutorials

Flutter app development tutorials


flutter – How to change AppBar color

main.dart


import 'package:flutter/material.dart';

void main(){
  runApp(
      MaterialApp(
        home: Scaffold(
          appBar: AppBar(
              title: const Text("Flutter - Change AppBar Color"),
              backgroundColor: Colors.pink,
              foregroundColor: Colors.yellow
          ),
        ),
      )
  );
}

More flutter tutorials



About Me

Flutter Developer

Design a site like this with WordPress.com
Get started