Home > other >  Why my texts are not being displayed in my column?
Why my texts are not being displayed in my column?

Time:12-28

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"),
    ],
  ),
);

CodePudding user response:

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

CodePudding user response:

Try below code hope its help to you.

Refer CupertinoPageScaffold enter image description here

  • Related