Set Background Color of Scaffold Widget Main Home Screen in Flutter

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. We can change the complete application home screen background color using this.

Contents in this project Set Background Color of Scaffold Widget Main Home Screen in Flutter:

1. Import material.dart package in your main.dart file.

2. Create the Void Main() function and call our main MyApp class using runApp() method.

3. Create our main View class named as MyApp extends with StatelessWidget.

4. Create Widget build method in MyApp class.

5. Create Scaffold widget in home section of Material App.

backgroundColor :  Used to set the background color of complete app home screen.

Here Color format is 0xff + HEX Color code.

6. Complete source code for main.dart file:

Screenshot:

Set Background Color of Scaffold Widget Main Home Screen in Flutter

2 Comments

  1. Hii Sir,
    How to save json api response of post type in sqllite database flutter

Leave a Reply

Your email address will not be published. Required fields are marked *