ajout date visite
parent
c307ed88b6
commit
bd2102c65e
|
|
@ -11,6 +11,7 @@ class WishlistModel {
|
||||||
late int stock;
|
late int stock;
|
||||||
late String location;
|
late String location;
|
||||||
late int photo;
|
late int photo;
|
||||||
|
late String date;
|
||||||
|
|
||||||
WishlistModel(
|
WishlistModel(
|
||||||
{required this.id,
|
{required this.id,
|
||||||
|
|
@ -22,7 +23,8 @@ class WishlistModel {
|
||||||
required this.review,
|
required this.review,
|
||||||
required this.sale,
|
required this.sale,
|
||||||
required this.stock,
|
required this.stock,
|
||||||
required this.location});
|
required this.location,
|
||||||
|
required this.date});
|
||||||
}
|
}
|
||||||
|
|
||||||
List<WishlistModel> wishlistData = [
|
List<WishlistModel> wishlistData = [
|
||||||
|
|
@ -37,7 +39,8 @@ List<WishlistModel> wishlistData = [
|
||||||
review: 42,
|
review: 42,
|
||||||
sale: 4,
|
sale: 4,
|
||||||
stock: 5,
|
stock: 5,
|
||||||
location: "Villeneuve d'asc"),
|
location: "Villeneuve d'asc",
|
||||||
|
date: 'Dimanche 26/02/2023 14:00'),
|
||||||
WishlistModel(
|
WishlistModel(
|
||||||
id: 2,
|
id: 2,
|
||||||
name: 'BARDI Smart PLUG WiFi Wireless Colokan - IoT Smart Home',
|
name: 'BARDI Smart PLUG WiFi Wireless Colokan - IoT Smart Home',
|
||||||
|
|
@ -48,7 +51,8 @@ List<WishlistModel> wishlistData = [
|
||||||
review: 1062,
|
review: 1062,
|
||||||
sale: 4797,
|
sale: 4797,
|
||||||
stock: 0,
|
stock: 0,
|
||||||
location: 'Brooklyn'),
|
location: 'Brooklyn',
|
||||||
|
date: 'Dimanche 26/02/2023 15:00'),
|
||||||
WishlistModel(
|
WishlistModel(
|
||||||
id: 3,
|
id: 3,
|
||||||
name: 'ipad Pro 2020 11-inch 128GB Wi-Fi Only - Silver',
|
name: 'ipad Pro 2020 11-inch 128GB Wi-Fi Only - Silver',
|
||||||
|
|
@ -59,5 +63,6 @@ List<WishlistModel> wishlistData = [
|
||||||
review: 22,
|
review: 22,
|
||||||
sale: 468,
|
sale: 468,
|
||||||
stock: 25,
|
stock: 25,
|
||||||
location: 'Brooklyn'),
|
location: 'Brooklyn',
|
||||||
|
date: 'Dimanche 26/02/2023 16:00'),
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ class ProductDetailPage extends StatefulWidget {
|
||||||
final double rating;
|
final double rating;
|
||||||
final int review;
|
final int review;
|
||||||
final int sale;
|
final int sale;
|
||||||
|
final String date;
|
||||||
|
|
||||||
const ProductDetailPage(
|
const ProductDetailPage(
|
||||||
{Key? key,
|
{Key? key,
|
||||||
|
|
@ -34,7 +35,8 @@ class ProductDetailPage extends StatefulWidget {
|
||||||
this.photo = 1,
|
this.photo = 1,
|
||||||
this.rating = 4,
|
this.rating = 4,
|
||||||
this.review = 45,
|
this.review = 45,
|
||||||
this.sale = 63})
|
this.sale = 63,
|
||||||
|
this.date = ''})
|
||||||
: super(key: key);
|
: super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,8 @@ class _TabHomePageState extends State<TabHomePage>
|
||||||
photo: wishlistData.photo,
|
photo: wishlistData.photo,
|
||||||
rating: wishlistData.rating,
|
rating: wishlistData.rating,
|
||||||
review: wishlistData.review,
|
review: wishlistData.review,
|
||||||
sale: wishlistData.sale)));
|
sale: wishlistData.sale,
|
||||||
|
date: wishlistData.date)));
|
||||||
},
|
},
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
|
@ -142,7 +143,7 @@ class _TabHomePageState extends State<TabHomePage>
|
||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.only(top: 5),
|
margin: EdgeInsets.only(top: 5),
|
||||||
child: Text(
|
child: Text(
|
||||||
'\Photo(s) ' + wishlistData.photo.toString(),
|
wishlistData.photo.toString() + ' Photo(s)',
|
||||||
style: GlobalStyle.productPrice),
|
style: GlobalStyle.productPrice),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
|
|
@ -172,8 +173,7 @@ class _TabHomePageState extends State<TabHomePage>
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.only(top: 5),
|
margin: EdgeInsets.only(top: 5),
|
||||||
child: Text(
|
child: Text(wishlistData.date,
|
||||||
wishlistData.sale.toString() + ' Sale',
|
|
||||||
style: GlobalStyle.productSale),
|
style: GlobalStyle.productSale),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
@ -226,7 +226,8 @@ class _TabHomePageState extends State<TabHomePage>
|
||||||
photo: wishlistData.photo,
|
photo: wishlistData.photo,
|
||||||
rating: wishlistData.rating,
|
rating: wishlistData.rating,
|
||||||
review: wishlistData.review,
|
review: wishlistData.review,
|
||||||
sale: wishlistData.sale)));
|
sale: wishlistData.sale,
|
||||||
|
date: wishlistData.date)));
|
||||||
},
|
},
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
minimumSize:
|
minimumSize:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue