-
-
Save Rahiche/7ff724fbbaf61d4a4abfad9d21bf1b0e to your computer and use it in GitHub Desktop.
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
Widget build(BuildContext context) { | |
//get the screen width | |
screenWidth = MediaQuery.of(context).size.width; | |
return Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: <Widget>[ | |
Container( | |
height: 24,//status bar height | |
width: cWidth, | |
color: Colors.green, | |
), | |
Flexible( | |
child: ListView( | |
controller: controller, | |
children: List.generate( | |
20, | |
(index) => ListTile( | |
title: Text(index.toString()), | |
)), | |
), | |
), | |
], | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment