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