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: don't see page completely

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.

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

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(),
  )
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