How To Set Change App Bar Title Text Color In Flutter

admin_img Posted By Bajarangi soft , Posted On 10-10-2020

App bar title text is by default shows in plain white color. But sometimes app developer wants to Change App Bar Title Text Color in Flutter mobile application. We can easily set App bar title text color using Text style Color.

How To Set Change App Bar Title Text Color In Flutter

 Change App Bar Title Text Color
Complete Code For Change App Bar Title Text Color In Flutter
main.dart

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
        home: Scaffold(
            appBar: AppBar(
              title: Text('Set App Bar Title Text Color',
                style: TextStyle(color: Color(0xFF9CCC65)),
              ),
              backgroundColor: Color(0xFF33691E),
            ),
            body: Center(
                child: Text('Set App Bar Title Text Color',
                  style: TextStyle(fontSize: 24),)

            )
        )
    );
  }
}

Related Post