singlechildscrollview does not work code example

Example 1: singlechildscrollview not working inside column

Simply wrap your "SingleChildScrollView" widget with "Expanded" widget and it will work...
:)

Widget build(BuildContext context) =>
Scaffold(
  body: Column(
    children: <Widget>[
      Container(...),
      // Here... Wrap your "SingleChildScrollView" with "Expanded"
      Expanded(
        child: SingleChildScrollView(
          child: Container(...),
        ),
      ),
    ],
  ),
);

Example 2: listview inside singlechildscrollview not scrolling

ListView(
   primary: false,
   shrinkWrap: true,
),

Tags:

Misc Example