Home > database >  How to make multiple scroll in flutter?
How to make multiple scroll in flutter?

Time:08-14

Example this 4 scroll

How to make 4 scroll in flutter?

CodePudding user response:

You can add multiple scrolls in a Row widget like

Row(
 children: [
    Flexible(
      flex: 1,
      child : SizedBox(
        height: MediaQuery.of(context).height,
        child: SingleChildScrollView()
      )
    ),
    Flexible(
      flex: 5,
      child : SizedBox(
        height: MediaQuery.of(context).height,
        child: SingleChildScrollView()
      )
    ),
    Flexible(
      flex: 1,
      child : SizedBox(
        height: MediaQuery.of(context).height,
        child: SingleChildScrollView()
      )
    ),
    Flexible(
      flex: 1,
      child : SizedBox(
        height: MediaQuery.of(context).height,
        child: SingleChildScrollView()
      )
    )
 ]
)
  • Related