Skip to content

Instantly share code, notes, and snippets.

@Rahiche
Created December 18, 2018 21:41
Show Gist options
  • Save Rahiche/7ff724fbbaf61d4a4abfad9d21bf1b0e to your computer and use it in GitHub Desktop.
Save Rahiche/7ff724fbbaf61d4a4abfad9d21bf1b0e to your computer and use it in GitHub Desktop.
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