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
- flutter – How to change AppBar height
- flutter – How to get AppBar height
- flutter – How to remove AppBar drop shadow
- flutter – MaterialApp theme
- flutter – How to change Text underline thickness
- flutter – Space between Text and underline
- flutter – How to add shadow to the Text
- flutter – Text with emoji
- flutter – Single line Text
- flutter – Text overflow
- flutter – MaterialStateProperty padding
- flutter – MaterialStateProperty color
- flutter – How to change ElevatedButton border color
- flutter – How to add padding to TextButton
- flutter – How to add a border to TextButton