skip to Main Content

enter image description here
when i don’t use SingleChildScrollView did that but when i used theenter image description here

how solve it ??

SingleChildScroll view use it and don’t use it
The result did not change even if I entered it as a video card media query or by giving a value myself.

2

Answers


  1. Add this to the column

    mainAxisSize: MainAxisSize.min,
    

    MainAxisSize.min Row and Column only occupy enough space on their main
    axes for their children. Their children are laid out without extra
    space and at the middle of their main axes.

    The explanation is from flutter docs for more info you can check this link

    Login or Signup to reply.
  2. You can add

    mainAxisSize: MainAxisSize.min

    parameter to the Column and do not use any expandable element inside Column, if you use it it will throw renderflex errors.

    Other fix you can do is wrap column with SizedBox and set height to the screen height or any size you want, and than wrap that SizedBox with SingleChildScrollView

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search