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

Why my texts are not being displayed in my column?

I’m a begginer in Flutter and Dart, I have made a simple basic code but it doens’t work, someone can help me ?
The app doesn’t display the texts of the column.
Here is the code :

return CupertinoPageScaffold(
  navigationBar: CupertinoNavigationBar(
    middle: Text('Page 1 of tab $index'),
  ),
  child: Column(
    children: const <Widget>[
      Text("ligne 1"),
      Text("ligne 2"),
    ],
  ),
);

>Solution :

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

You text is already there but it’s hiding behind the navigationBar. Just wrap your Column into SafeArea and your text will appear properly.

SafeArea(
              child: Column(
            children: const <Widget>[
              Text("ligne 1"),
              Text("ligne 2"),
            ],
          ))

enter image description here

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