Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Flutter some default styling on new project

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Thanks

enter image description here

>Solution :

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")
    )
);
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading