Skip to content

Instantly share code, notes, and snippets.

@rohan20
Created August 6, 2018 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohan20/119dbe8470d71322a8b06a4095123306 to your computer and use it in GitHub Desktop.
Save rohan20/119dbe8470d71322a8b06a4095123306 to your computer and use it in GitHub Desktop.
E-Commerce app using Flutter - Part 1: The User Interface
_buildProductDetailsPage(BuildContext context) {
Size screenSize = MediaQuery.of(context).size;
return ListView(
children: <Widget>[
Container(
padding: const EdgeInsets.all(4.0),
child: Card(
elevation: 4.0,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
_buildProductImagesWidgets(),
_buildProductTitleWidget(),
SizedBox(height: 12.0),
_buildPriceWidgets(),
SizedBox(height: 12.0),
_buildDivider(screenSize),
SizedBox(height: 12.0),
_buildFurtherInfoWidget(),
SizedBox(height: 12.0),
_buildDivider(screenSize),
SizedBox(height: 12.0),
_buildSizeChartWidgets(),
SizedBox(height: 12.0),
_buildDetailsAndMaterialWidgets(),
SizedBox(height: 12.0),
_buildStyleNoteHeader(),
SizedBox(height: 6.0),
_buildDivider(screenSize),
SizedBox(height: 4.0),
_buildStyleNoteData(),
SizedBox(height: 20.0),
_buildMoreInfoHeader(),
SizedBox(height: 6.0),
_buildDivider(screenSize),
SizedBox(height: 4.0),
_buildMoreInfoData(),
SizedBox(height: 24.0),
],
),
),
),
],
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment