Created
August 6, 2018 06:58
-
-
Save rohan20/277f2f6ddeac62b8647e481e7da4d469 to your computer and use it in GitHub Desktop.
E-Commerce app using Flutter - Part 1: The User Interface
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
_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