Skip to content

Instantly share code, notes, and snippets.

@rohan20
Created August 6, 2018 06:58
Show Gist options
  • Save rohan20/277f2f6ddeac62b8647e481e7da4d469 to your computer and use it in GitHub Desktop.
Save rohan20/277f2f6ddeac62b8647e481e7da4d469 to your computer and use it in GitHub Desktop.
E-Commerce app using Flutter - Part 1: The User Interface
_buildProductsListPage() {
Size screenSize = MediaQuery.of(context).size;
return Container(
color: Colors.grey[100],
child: ListView.builder(
itemCount: 5,
itemBuilder: (context, index) {
if (index == 0) {
return _buildFilterWidgets(screenSize);
} else if (index == 4) {
return SizedBox(
height: 12.0,
);
} else {
return _dummyProductsList()[index];
}
},
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment