Ajout photo dans product_detail
parent
bd2102c65e
commit
66edbf3f38
|
|
@ -330,7 +330,7 @@ class _ProductDetailPageState extends State<ProductDetailPage> {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Text('\$' + _globalFunction.removeDecimalZeroFormat(widget.price),
|
||||
Text(widget.photo.toString() + ' photo(s)',
|
||||
style: GlobalStyle.detailProductPrice),
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
|
|
@ -338,11 +338,11 @@ class _ProductDetailPageState extends State<ProductDetailPage> {
|
|||
if (_isLove == true) {
|
||||
_isLove = false;
|
||||
Fluttertoast.showToast(
|
||||
msg: 'Item has been deleted from your wishlist',
|
||||
msg: "La photo n'est plus taguée comme favorite",
|
||||
toastLength: Toast.LENGTH_LONG);
|
||||
} else {
|
||||
Fluttertoast.showToast(
|
||||
msg: 'Item has been added to your wishlist',
|
||||
msg: "La photo est taguée comme favorite",
|
||||
toastLength: Toast.LENGTH_LONG);
|
||||
_isLove = true;
|
||||
}
|
||||
|
|
@ -363,37 +363,7 @@ class _ProductDetailPageState extends State<ProductDetailPage> {
|
|||
IntrinsicHeight(
|
||||
child: Row(
|
||||
children: [
|
||||
GestureDetector(
|
||||
behavior: HitTestBehavior.translucent,
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => ProductReviewPage()));
|
||||
},
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(Icons.star, color: Colors.yellow[700], size: 18),
|
||||
SizedBox(
|
||||
width: 3,
|
||||
),
|
||||
Text(widget.rating.toString(),
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold, fontSize: 14)),
|
||||
SizedBox(
|
||||
width: 3,
|
||||
),
|
||||
Text('(' + widget.review.toString() + ')',
|
||||
style: TextStyle(fontSize: 13, color: BLACK_GREY)),
|
||||
],
|
||||
),
|
||||
),
|
||||
VerticalDivider(
|
||||
width: 30,
|
||||
thickness: 1,
|
||||
color: Colors.grey[300],
|
||||
),
|
||||
Text(widget.sale.toString() + ' Sale',
|
||||
Text(widget.date,
|
||||
style: TextStyle(fontSize: 13, color: BLACK_GREY)),
|
||||
VerticalDivider(
|
||||
width: 30,
|
||||
|
|
|
|||
Loading…
Reference in New Issue