I am page like this photo in flutter: enter image description here
how could i fix this error?
I need to see page completely.
just want to see page with all components.
when I add another widget always did not dload all page with all widgets.
my code is like here:
return Scaffold(
appBar: myMobileAppBar(false),
body: Container(
padding: const EdgeInsets.fromLTRB(15, 10, 10, 15),
width: double.infinity,
height: double.infinity,
decoration: myDecoration,
child: Column(
children: [
const MyLableObligatori(
inputtext: 'Codice Prodotto:',
),
Row(
//Mycode
),
const MyLable(inputtext: 'Codice Fattura:'),
const MyTextField(),
const MyLable(inputtext: 'Descrizione:'),
const MyTextField(maxsize: 5),
const SizedBox(
height: 20,
),
//Categoria List
//const CategoriaList(),
PrintCatList(categoriaDataSource),
Row(
//Mycode
),
const SizedBox(
height: 20,
),
const MyLableObligatori(inputtext: 'Nome Fornitore:'),
DropdownButton(items: null, onChanged: null),
Align(
//Mycode
),
),
],
),
),
);
>Solution :
That is because your content isn’t scrollable and the widgets take more space than your screen height.Therefore your body gets overflowed. Try one of the following properties.
1.Add following to your Scaffold:
resizeToAvoidBottomInset: true
2.Wrap your widget in SingleChildScrollView
SingleChildScrollView(
child: ColumnName(),
)