Skip to content

Instantly share code, notes, and snippets.

@daiki1003
Created November 27, 2020 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daiki1003/11506c73d0d03f7a69e8235de2023804 to your computer and use it in GitHub Desktop.
Save daiki1003/11506c73d0d03f7a69e8235de2023804 to your computer and use it in GitHub Desktop.
scroll_view_under_container
class ScrollViewUnderContainer extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
Expanded(
child: ListView(
children: [
for (int i = 0; i < 100; i++)
Text(
'$i',
style: TextStyle(fontSize: 20),
),
],
),
),
Container(
width: double.infinity,
height: 80,
color: Colors.blue,
)
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment