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"),
],
))
CodePudding user response:
Try below code hope its help to you.