Created
November 27, 2020 10:16
-
-
Save daiki1003/11506c73d0d03f7a69e8235de2023804 to your computer and use it in GitHub Desktop.
scroll_view_under_container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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