How To Set Scaffold Background Color In Flutter Android App

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

Scaffold widget is a material design widget for simple and better first page view. Scaffold widget supports multiple type of argument and one them is backgroundColor. backgroundColor is used to Set Background Color of Scaffold Widget Main Home Screen in Flutter android iOS mobile application.

How To Set Scaffold Background Color In Flutter Android App

Set Scaffold Background Color

Complete Code Set Scaffold Background Color For 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(
            backgroundColor: Color(0xFFFFB300),
            body: SafeArea(
                child: Center(
                    child: (  Text('Set Scaffold Background Color')  )
                )
            )
        )
    );
  }
}

 

Related Post