add home screen and shipping addresses

This commit is contained in:
Thinzar Win
2020-06-24 16:06:40 +06:30
parent 752e38edf2
commit 6f6bd20e3e
17 changed files with 698 additions and 169 deletions

View File

@@ -20,6 +20,10 @@ class BuyingOnlinePage extends StatefulWidget {
class _BuyingOnlinePagetate extends State<BuyingOnlinePage> {
bool _isLoading = false;
List<String> images = [
'assets/Fullname.jpeg',
'assets/FirstName&LastName.jpeg'
];
@override
Widget build(BuildContext context) {
@@ -86,64 +90,6 @@ class _BuyingOnlinePagetate extends State<BuyingOnlinePage> {
),
);
final neweggbutton = Container(
padding: EdgeInsets.only(left: 10, right: 10, top: 10),
child: Container(
height: 45.0,
decoration: BoxDecoration(
color: primaryColor,
shape: BoxShape.rectangle,
// borderRadius: BorderRadius.all(Radius.circular(10.0))
),
child: ButtonTheme(
minWidth: 900.0,
height: 100.0,
child: FlatButton(
onPressed: () {
Navigator.of(context)
.push(BottomUpPageRoute(ManualPage(marketplace: 'Newegg')));
},
child: LocalText(
context,
'buy.newegg',
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.bold,
),
),
),
),
);
final macybutton = Container(
padding: EdgeInsets.only(left: 10, right: 10, top: 10),
child: Container(
height: 45.0,
decoration: BoxDecoration(
color: primaryColor,
shape: BoxShape.rectangle,
// borderRadius: BorderRadius.all(Radius.circular(10.0))
),
child: ButtonTheme(
minWidth: 900.0,
height: 100.0,
child: FlatButton(
onPressed: () {
Navigator.of(context)
.push(BottomUpPageRoute(ManualPage(marketplace: 'Macy')));
},
child: LocalText(
context,
'buy.macy',
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.bold,
),
),
),
),
);
return LocalProgress(
inAsyncCall: _isLoading,
child: Scaffold(
@@ -202,9 +148,20 @@ class _BuyingOnlinePagetate extends State<BuyingOnlinePage> {
),
// deliveryAddressBox,
instructionBox,
amazonbutton,
neweggbutton,
macybutton,
Container(
height: 500,
width: 500,
child: ListView.builder(
itemCount: images.length,
scrollDirection: Axis.horizontal,
itemBuilder: (context, index) {
return Container(
padding: EdgeInsets.only(left: 0, right: 5, top: 5),
child: Image.asset(images[index], fit: BoxFit.contain),
);
}),
),
SizedBox(height: 10)
],
),