Home > Back-end >  Flutter some default styling on new project
Flutter some default styling on new project

Time:11-24

i'm starting on flutter, already sorry if it's a noob question

Basically started with a new project and there I am getting an already applied theme

How to remove this?

Thanks

enter image description here

CodePudding user response:

Right now, you have a completely black screen because you don't have a Scaffold widget.

The Scaffold widget is screen that will be displayed on your display. You can add your Text widget in the body property of your Scaffold

return const MaterialApp(
    home: Scaffold(
       body: Text("Hello")
    )
);
  • Related