-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from shaunhossain/check_out_screen
Check out screen
- Loading branch information
Showing
25 changed files
with
1,200 additions
and
393 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
class AddCartProduct{ | ||
AddCartProduct({ | ||
this.id, | ||
required this.title, | ||
required this.price, | ||
required this.description, | ||
required this.category, | ||
required this.images, | ||
required this.color, | ||
required this.size, | ||
required this.quantity, | ||
required this.createdAt, | ||
required this.updatedAt, | ||
}); | ||
|
||
final int? id; | ||
final String title; | ||
final int price; | ||
final String description; | ||
final String category; | ||
final String images; | ||
final int color; | ||
final String size; | ||
final int quantity; | ||
final String createdAt; | ||
final String updatedAt; | ||
|
||
factory AddCartProduct.fromJson(Map<dynamic, dynamic> json) => AddCartProduct( | ||
id: json["id"], | ||
title: json["title"], | ||
price: json["price"], | ||
description: json["description"], | ||
category: json["category"], | ||
images: json["images"], | ||
color: json["color"], | ||
size: json["size"], | ||
quantity: json["quantity"], | ||
createdAt: json["created_at"], | ||
updatedAt: json["updated_at"], | ||
); | ||
|
||
Map<String, dynamic> toJson() => { | ||
"id": id, | ||
"title": title, | ||
"price": price, | ||
"description": description, | ||
"category": category, | ||
"images": images, | ||
"color": color, | ||
"size": size, | ||
"quantity": quantity, | ||
"created_at": createdAt, | ||
"updated_at": updatedAt, | ||
}; | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:platzi_fake_store/utils/size_config.dart'; | ||
import 'package:platzi_fake_store/view/components/widget/custom_text_view.dart'; | ||
|
||
class CustomEmptyPage extends StatelessWidget { | ||
const CustomEmptyPage({Key? key, required this.asset, required this.warningTitle, required this.warningDes}) : super(key: key); | ||
final String asset; | ||
final String warningTitle; | ||
final String warningDes; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Center( | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
Image.asset(asset,fit: BoxFit.scaleDown,), | ||
CustomTextView( | ||
text: warningTitle, | ||
fontSize: SizeConfig.textScaleFactor! * 18, | ||
fontWeight: FontWeight.w500, | ||
color: Colors.black), | ||
CustomTextView( | ||
text: warningDes, | ||
fontSize: SizeConfig.textScaleFactor! * 14, | ||
fontWeight: FontWeight.w400, | ||
color: Colors.grey), | ||
], | ||
)); | ||
} | ||
} |
Oops, something went wrong.