Question: I'm learning Flutter, and I'm starting from the very basics. I'm not using MaterialApp. What's a good way to set the background color of the whole screen?

Here's what I have so far:

```
import 'package:flutter/material.dart';

void main() {
  runApp(new MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return new Center(child: new Text("Hello, World!"));
  }
}

```

Some of my questions are:

* What's a basic way to set the background color?
* What exactly am I looking at, on the screen? Which code "is" the background? Is there a thing to set the background color on? If not, what's a simple and appropriate "simple background" (in order to paint a background color).

Thanks for the help!

The code above generates a black screen with white text:
[![enter image description here](https://i.stack.imgur.com/e2CIm.png)](https://i.stack.imgur.com/e2CIm.png)

Answer: 
You can just put the six digit hexa after (0xFF\*\*......\*\*):

```
return Scaffold( 
    backgroundColor: const Color(0xFFE9ECEF),
.....) } )

```
Try the following code:

```
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        scaffoldBackgroundColor: Colors.white, // Change the background color of all Scaffold widgets of your app here
      ),
      home: const Scaffold(
        body: Center(child: Text("Hello, World!")),
        backgroundColor: Colors.white, // Change the background color of this Scaffold widget here
      ),
    );
  }
}

```