Ajout photo dans product_detail

release/mobdr-v0.0.1
Frédérik Benoist 2023-02-26 19:02:54 +01:00
parent bd2102c65e
commit 66edbf3f38
1 changed files with 4 additions and 34 deletions

View File

@ -330,7 +330,7 @@ class _ProductDetailPageState extends State<ProductDetailPage> {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Text('\$' + _globalFunction.removeDecimalZeroFormat(widget.price), Text(widget.photo.toString() + ' photo(s)',
style: GlobalStyle.detailProductPrice), style: GlobalStyle.detailProductPrice),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
@ -338,11 +338,11 @@ class _ProductDetailPageState extends State<ProductDetailPage> {
if (_isLove == true) { if (_isLove == true) {
_isLove = false; _isLove = false;
Fluttertoast.showToast( Fluttertoast.showToast(
msg: 'Item has been deleted from your wishlist', msg: "La photo n'est plus taguée comme favorite",
toastLength: Toast.LENGTH_LONG); toastLength: Toast.LENGTH_LONG);
} else { } else {
Fluttertoast.showToast( Fluttertoast.showToast(
msg: 'Item has been added to your wishlist', msg: "La photo est taguée comme favorite",
toastLength: Toast.LENGTH_LONG); toastLength: Toast.LENGTH_LONG);
_isLove = true; _isLove = true;
} }
@ -363,37 +363,7 @@ class _ProductDetailPageState extends State<ProductDetailPage> {
IntrinsicHeight( IntrinsicHeight(
child: Row( child: Row(
children: [ children: [
GestureDetector( Text(widget.date,
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',
style: TextStyle(fontSize: 13, color: BLACK_GREY)), style: TextStyle(fontSize: 13, color: BLACK_GREY)),
VerticalDivider( VerticalDivider(
width: 30, width: 30,