productdetails fixed

This commit is contained in:
2025-02-10 18:51:43 +05:30
parent b6ef70cfb6
commit 991a983d85
13 changed files with 682 additions and 1352 deletions

BIN
.DS_Store vendored

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1 +1 @@
3.24.3 3.22.3

View File

@@ -1,55 +1,52 @@
# This is a generated file; do not edit or check into version control. # This is a generated file; do not edit or check into version control.
connectivity_plus=/Users/apple/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/ connectivity_plus=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.3/
file_selector_linux=/Users/apple/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.3+2/ file_selector_linux=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.3+2/
file_selector_macos=/Users/apple/.pub-cache/hosted/pub.dev/file_selector_macos-0.9.4+2/ file_selector_macos=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/file_selector_macos-0.9.4+2/
file_selector_windows=/Users/apple/.pub-cache/hosted/pub.dev/file_selector_windows-0.9.3+3/ file_selector_windows=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/file_selector_windows-0.9.3+3/
flutter_inappwebview=/Users/apple/.pub-cache/hosted/pub.dev/flutter_inappwebview-6.1.5/ flutter_inappwebview=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview-6.0.0/
flutter_inappwebview_android=/Users/apple/.pub-cache/hosted/pub.dev/flutter_inappwebview_android-1.1.3/ flutter_inappwebview_android=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_android-1.0.13/
flutter_inappwebview_ios=/Users/apple/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.1.2/ flutter_inappwebview_ios=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/
flutter_inappwebview_macos=/Users/apple/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/ flutter_inappwebview_macos=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.0.11/
flutter_inappwebview_web=/Users/apple/.pub-cache/hosted/pub.dev/flutter_inappwebview_web-1.1.2/ flutter_inappwebview_web=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_inappwebview_web-1.0.8/
flutter_inappwebview_windows=/Users/apple/.pub-cache/hosted/pub.dev/flutter_inappwebview_windows-0.6.0/ flutter_plugin_android_lifecycle=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.22/
flutter_plugin_android_lifecycle=/Users/apple/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.24/ fluttertoast=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/fluttertoast-8.2.11/
fluttertoast=/Users/apple/.pub-cache/hosted/pub.dev/fluttertoast-8.2.11/ geocoding=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geocoding-3.0.0/
geocoding=/Users/apple/.pub-cache/hosted/pub.dev/geocoding-3.0.0/ geocoding_android=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/
geocoding_android=/Users/apple/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/ geocoding_ios=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/
geocoding_ios=/Users/apple/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/ geolocator=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator-13.0.2/
geolocator=/Users/apple/.pub-cache/hosted/pub.dev/geolocator-13.0.2/ geolocator_android=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/
geolocator_android=/Users/apple/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/ geolocator_apple=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.8+1/
geolocator_apple=/Users/apple/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.8+1/ geolocator_web=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/
geolocator_web=/Users/apple/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/ geolocator_windows=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/
geolocator_windows=/Users/apple/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/ google_api_headers=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_api_headers-1.6.0/
google_api_headers=/Users/apple/.pub-cache/hosted/pub.dev/google_api_headers-1.6.0/ google_maps_flutter=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_maps_flutter-2.10.0/
google_maps_flutter=/Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter-2.10.0/ google_maps_flutter_android=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_maps_flutter_android-2.14.7/
google_maps_flutter_android=/Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_android-2.14.12/ google_maps_flutter_ios=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_maps_flutter_ios-2.13.2/
google_maps_flutter_ios=/Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_ios-2.13.2/ google_maps_flutter_web=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/google_maps_flutter_web-0.5.10/
google_maps_flutter_web=/Users/apple/.pub-cache/hosted/pub.dev/google_maps_flutter_web-0.5.10/ image_picker=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker-1.1.2/
image_picker=/Users/apple/.pub-cache/hosted/pub.dev/image_picker-1.1.2/ image_picker_android=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_android-0.8.12+12/
image_picker_android=/Users/apple/.pub-cache/hosted/pub.dev/image_picker_android-0.8.12+20/ image_picker_for_web=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_for_web-3.0.6/
image_picker_for_web=/Users/apple/.pub-cache/hosted/pub.dev/image_picker_for_web-3.0.6/ image_picker_ios=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.12+2/
image_picker_ios=/Users/apple/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.12+2/ image_picker_linux=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_linux-0.2.1+1/
image_picker_linux=/Users/apple/.pub-cache/hosted/pub.dev/image_picker_linux-0.2.1+1/ image_picker_macos=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_macos-0.2.1+2/
image_picker_macos=/Users/apple/.pub-cache/hosted/pub.dev/image_picker_macos-0.2.1+2/ image_picker_windows=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/image_picker_windows-0.2.1+1/
image_picker_windows=/Users/apple/.pub-cache/hosted/pub.dev/image_picker_windows-0.2.1+1/ package_info_plus=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/
package_info_plus=/Users/apple/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/ path_provider=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider-2.1.5/
path_provider=/Users/apple/.pub-cache/hosted/pub.dev/path_provider-2.1.5/ path_provider_android=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_android-2.2.10/
path_provider_android=/Users/apple/.pub-cache/hosted/pub.dev/path_provider_android-2.2.15/ path_provider_foundation=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/
path_provider_foundation=/Users/apple/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/ path_provider_linux=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
path_provider_linux=/Users/apple/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/ path_provider_windows=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/
path_provider_windows=/Users/apple/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/ shared_preferences=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences-2.3.3/
shared_preferences=/Users/apple/.pub-cache/hosted/pub.dev/shared_preferences-2.5.1/ shared_preferences_android=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_android-2.3.2/
shared_preferences_android=/Users/apple/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.4/ shared_preferences_foundation=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/
shared_preferences_foundation=/Users/apple/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/ shared_preferences_linux=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/
shared_preferences_linux=/Users/apple/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/ shared_preferences_web=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.2/
shared_preferences_web=/Users/apple/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.2/ shared_preferences_windows=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/
shared_preferences_windows=/Users/apple/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/ sqflite=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/sqflite-2.3.3+1/
sqflite=/Users/apple/.pub-cache/hosted/pub.dev/sqflite-2.4.1/ url_launcher=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher-6.3.1/
sqflite_android=/Users/apple/.pub-cache/hosted/pub.dev/sqflite_android-2.4.0/ url_launcher_android=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.9/
sqflite_darwin=/Users/apple/.pub-cache/hosted/pub.dev/sqflite_darwin-2.4.1+1/ url_launcher_ios=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.2/
url_launcher=/Users/apple/.pub-cache/hosted/pub.dev/url_launcher-6.3.1/ url_launcher_linux=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.1/
url_launcher_android=/Users/apple/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.14/ url_launcher_macos=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.2/
url_launcher_ios=/Users/apple/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.2/ url_launcher_web=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.3/
url_launcher_linux=/Users/apple/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.1/ url_launcher_windows=/Users/rajeevsingh/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.4/
url_launcher_macos=/Users/apple/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.2/
url_launcher_web=/Users/apple/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.3/
url_launcher_windows=/Users/apple/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.4/

File diff suppressed because one or more lines are too long

View File

@@ -455,8 +455,8 @@ class Product {
dynamic expiryDate; dynamic expiryDate;
dynamic returnsAllowedDays; dynamic returnsAllowedDays;
dynamic exchangeAllowedDays; dynamic exchangeAllowedDays;
DateTime? createdAt; dynamic? createdAt;
DateTime? updatedAt; dynamic? updatedAt;
dynamic storeId; dynamic storeId;
dynamic categoryId; dynamic categoryId;
dynamic productTypeId; dynamic productTypeId;
@@ -519,10 +519,10 @@ class Product {
this.applicableCoupons, this.applicableCoupons,
}); });
factory Product.fromJson(Map<dynamic, dynamic> json) => Product( factory Product.fromJson(Map<String, dynamic> json) => Product(
id: json["id"], id: json["id"],
name: json["name"], name: json["name"] ?? "",
description: json["description"], description: json["description"] ?? "",
additionalInfo: json["additionalInfo"], additionalInfo: json["additionalInfo"],
brand: json["brand"], brand: json["brand"],
basePrice: json["basePrice"], basePrice: json["basePrice"],
@@ -539,11 +539,21 @@ class Product {
manufacturerName: json["manufacturerName"], manufacturerName: json["manufacturerName"],
manufacturerAddress: json["manufacturerAddress"], manufacturerAddress: json["manufacturerAddress"],
countryOfOrigin: json["countryOfOrigin"], countryOfOrigin: json["countryOfOrigin"],
expiryDate: DateTime?.parse(json["expiryDate"]), expiryDate: json["expiryDate"] != null
? DateTime.parse(json["expiryDate"])
: null,
createdAt: json["createdAt"] != null
? DateTime.parse(json["createdAt"])
: null,
updatedAt: json["updatedAt"] != null
? DateTime.parse(json["updatedAt"])
: null,
returnsAllowedDays: json["returnsAllowedDays"], returnsAllowedDays: json["returnsAllowedDays"],
exchangeAllowedDays: json["exchangeAllowedDays"], exchangeAllowedDays: json["exchangeAllowedDays"],
createdAt: DateTime?.parse(json["createdAt"]), productTags: json["productTags"] != null
updatedAt: DateTime?.parse(json["updatedAt"]), ? List<ProductTag>.from(
json["productTags"].map((x) => ProductTag.fromJson(x)))
: [],
storeId: json["storeId"], storeId: json["storeId"],
categoryId: json["categoryId"], categoryId: json["categoryId"],
productTypeId: json["productTypeId"], productTypeId: json["productTypeId"],
@@ -554,8 +564,6 @@ class Product {
timeSlot: json["timeSlot"], timeSlot: json["timeSlot"],
productImages: List<ProductImage>.from( productImages: List<ProductImage>.from(
json["productImages"].map((x) => ProductImage.fromJson(x))), json["productImages"].map((x) => ProductImage.fromJson(x))),
productTags: List<ProductTag>.from(
json["productTags"].map((x) => ProductTag.fromJson(x))),
zones: List<dynamic>.from(json["zones"].map((x) => x)), zones: List<dynamic>.from(json["zones"].map((x) => x)),
productHighlight: List<ProductHighlight>.from( productHighlight: List<ProductHighlight>.from(
json["ProductHighlight"].map((x) => ProductHighlight.fromJson(x))), json["ProductHighlight"].map((x) => ProductHighlight.fromJson(x))),

View File

@@ -1,625 +1,3 @@
// // To parse this JSON data, do
// //
// // final productDetails = productDetailsFromJson(jsondynamic);
// import 'dart:convert';
// import 'dart:ffi';
// ProductDetailsData productDetailsdataFromJson(dynamic str) =>
// ProductDetailsData.fromJson(json.decode(str));
// dynamic productDetailsToJson(ProductDetailsData data) =>
// json.encode(data.toJson());
// class ProductDetailsData {
// Data? data;
// ProductDetailsData({
// this.data,
// });
// factory ProductDetailsData.fromJson(Map<dynamic, dynamic> json) =>
// ProductDetailsData(
// data: Data.fromJson(json["data"]),
// );
// Map<dynamic, dynamic> toJson() => {
// "data": data!.toJson(),
// };
// }
// class Data {
// dynamic id;
// dynamic name;
// dynamic description;
// dynamic additionalInfo;
// dynamic brand;
// dynamic basePrice;
// dynamic discountPrice;
// dynamic? stock;
// dynamic? quantity;
// dynamic unit;
// dynamic slug;
// dynamic averageRating;
// bool? isInStock;
// bool? isActive;
// DateTime? createdAt;
// DateTime? updatedAt;
// dynamic storeId;
// dynamic categoryId;
// dynamic productTypeId;
// dynamic timeSlotId;
// Store? store;
// Category? category;
// dynamic? productType;
// dynamic timeSlot;
// List<ProductImage>? productImages;
// List<dynamic>? productTags;
// List<dynamic>? zones;
// List<ProductReview>? productReview;
// List<dynamic>? questions;
// List<CartItem>? cartItems;
// List<WishlistItem>? wishlistItem;
// List<dynamic>? applicableCoupons;
// bool? isInWishlist;
// Data({
// this.id,
// this.name,
// this.description,
// this.additionalInfo,
// this.brand,
// this.basePrice,
// this.discountPrice,
// this.stock,
// this.quantity,
// this.unit,
// this.slug,
// this.averageRating,
// this.isInStock,
// this.isActive,
// this.createdAt,
// this.updatedAt,
// this.storeId,
// this.categoryId,
// this.productTypeId,
// this.timeSlotId,
// this.store,
// this.category,
// this.productType,
// this.timeSlot,
// this.productImages,
// this.productTags,
// this.zones,
// this.productReview,
// this.questions,
// this.cartItems,
// this.wishlistItem,
// this.applicableCoupons,
// this.isInWishlist,
// });
// factory Data.fromJson(Map<dynamic, dynamic> json) => Data(
// id: json["id"],
// name: json["name"],
// description: json["description"],
// additionalInfo: json["additionalInfo"],
// brand: json["brand"],
// basePrice: json["basePrice"],
// discountPrice: json["discountPrice"],
// stock: json["stock"],
// quantity: json["quantity"],
// unit: json["unit"],
// slug: json["slug"],
// averageRating: json["averageRating"],
// isInStock: json["isInStock"],
// isActive: json["isActive"],
// createdAt: DateTime.parse(json["createdAt"]),
// updatedAt: DateTime.parse(json["updatedAt"]),
// storeId: json["storeId"],
// categoryId: json["categoryId"],
// productTypeId: json["productTypeId"],
// timeSlotId: json["timeSlotId"],
// store: Store.fromJson(json["store"]),
// category: Category.fromJson(json["category"]),
// productType: json["productType"],
// timeSlot: json["timeSlot"],
// productImages: List<ProductImage>.from(
// json["productImages"].map((x) => ProductImage.fromJson(x))),
// productTags: List<dynamic>.from(json["productTags"].map((x) => x)),
// zones: List<dynamic>.from(json["zones"].map((x) => x)),
// productReview: List<ProductReview>.from(
// json["ProductReview"].map((x) => ProductReview.fromJson(x))),
// questions: List<dynamic>.from(json["questions"].map((x) => x)),
// cartItems: List<CartItem>.from(
// json["cartItems"].map((x) => CartItem.fromJson(x))),
// wishlistItem: List<WishlistItem>.from(
// json["WishlistItem"].map((x) => WishlistItem.fromJson(x))),
// applicableCoupons:
// List<dynamic>.from(json["applicableCoupons"].map((x) => x)),
// isInWishlist: json["isInWishlist"],
// );
// Map<dynamic, dynamic> toJson() => {
// "id": id,
// "name": name,
// "description": description,
// "additionalInfo": additionalInfo,
// "brand": brand,
// "basePrice": basePrice,
// "discountPrice": discountPrice,
// "stock": stock,
// "quantity": quantity,
// "unit": unit,
// "slug": slug,
// "averageRating": averageRating,
// "isInStock": isInStock,
// "isActive": isActive,
// "createdAt": createdAt,
// "updatedAt": updatedAt,
// "storeId": storeId,
// "categoryId": categoryId,
// "productTypeId": productTypeId,
// "timeSlotId": timeSlotId,
// "store": store!.toJson(),
// "category": category!.toJson(),
// "productType": productType,
// "timeSlot": timeSlot,
// "productImages":
// List<dynamic>.from(productImages!.map((x) => x.toJson())),
// "productTags": List<dynamic>.from(productTags!.map((x) => x)),
// "zones": List<dynamic>.from(zones!.map((x) => x)),
// "ProductReview": List<dynamic>.from(productReview!.map((x) => x)),
// "questions": List<dynamic>.from(questions!.map((x) => x)),
// "cartItems": List<dynamic>.from(cartItems!.map((x) => x.toJson())),
// "WishlistItem":
// List<dynamic>.from(wishlistItem!.map((x) => x.toJson())),
// "applicableCoupons":
// List<dynamic>.from(applicableCoupons!.map((x) => x)),
// "isInWishlist": isInWishlist,
// };
// }
// class CartItem {
// dynamic id;
// dynamic quantity;
// dynamic priceSnapshot;
// dynamic cartId;
// dynamic productId;
// dynamic storeId;
// DateTime? createdAt;
// DateTime? updatedAt;
// CartItem({
// this.id,
// this.quantity,
// this.priceSnapshot,
// this.cartId,
// this.productId,
// this.storeId,
// this.createdAt,
// this.updatedAt,
// });
// factory CartItem.fromJson(Map<dynamic, dynamic> json) => CartItem(
// id: json["id"],
// quantity: json["quantity"],
// priceSnapshot: json["priceSnapshot"],
// cartId: json["cartId"],
// productId: json["productId"],
// storeId: json["storeId"],
// createdAt: DateTime.parse(json["createdAt"]),
// updatedAt: DateTime.parse(json["updatedAt"]),
// );
// Map<dynamic, dynamic> toJson() => {
// "id": id,
// "quantity": quantity,
// "priceSnapshot": priceSnapshot,
// "cartId": cartId,
// "productId": productId,
// "storeId": storeId,
// "createdAt": createdAt,
// "updatedAt": updatedAt,
// };
// }
// class Category {
// dynamic id;
// dynamic name;
// dynamic description;
// dynamic image;
// dynamic slug;
// dynamic level;
// bool? isActive;
// DateTime? createdAt;
// DateTime? updatedAt;
// dynamic parentCategoryId;
// dynamic path;
// Category({
// this.id,
// this.name,
// this.description,
// this.image,
// this.slug,
// this.level,
// this.isActive,
// this.createdAt,
// this.updatedAt,
// this.parentCategoryId,
// this.path,
// });
// factory Category.fromJson(Map<dynamic, dynamic> json) => Category(
// id: json["id"],
// name: json["name"],
// description: json["description"],
// image: json["image"],
// slug: json["slug"],
// level: json["level"],
// isActive: json["isActive"],
// createdAt: DateTime.parse(json["createdAt"]),
// updatedAt: DateTime.parse(json["updatedAt"]),
// parentCategoryId: json["parentCategoryId"],
// path: json["path"],
// );
// Map<dynamic, dynamic> toJson() => {
// "id": id,
// "name": name,
// "description": description,
// "image": image,
// "slug": slug,
// "level": level,
// "isActive": isActive,
// "createdAt": createdAt,
// "updatedAt": updatedAt,
// "parentCategoryId": parentCategoryId,
// "path": path,
// };
// }
// class ProductImage {
// dynamic id;
// dynamic url;
// bool? isDefault;
// dynamic productId;
// ProductImage({
// this.id,
// this.url,
// this.isDefault,
// this.productId,
// });
// factory ProductImage.fromJson(Map<dynamic, dynamic> json) => ProductImage(
// id: json["id"],
// url: json["url"],
// isDefault: json["isDefault"],
// productId: json["productId"],
// );
// Map<dynamic, dynamic> toJson() => {
// "id": id,
// "url": url,
// "isDefault": isDefault,
// "productId": productId,
// };
// }
// class Store {
// dynamic id;
// dynamic storeName;
// dynamic storeDescription;
// dynamic officialPhoneNumber;
// dynamic storeAddress;
// dynamic gstNumber;
// dynamic gumastaNumber;
// dynamic storePicture;
// DateTime? createdAt;
// DateTime? updatedAt;
// dynamic vendorId;
// bool? isActive;
// dynamic couponId;
// Store({
// this.id,
// this.storeName,
// this.storeDescription,
// this.officialPhoneNumber,
// this.storeAddress,
// this.gstNumber,
// this.gumastaNumber,
// this.storePicture,
// this.createdAt,
// this.updatedAt,
// this.vendorId,
// this.isActive,
// this.couponId,
// });
// factory Store.fromJson(Map<dynamic, dynamic> json) => Store(
// id: json["id"],
// storeName: json["storeName"],
// storeDescription: json["storeDescription"],
// officialPhoneNumber: json["officialPhoneNumber"],
// storeAddress: json["storeAddress"],
// gstNumber: json["gstNumber"],
// gumastaNumber: json["gumastaNumber"],
// storePicture: json["storePicture"],
// createdAt: DateTime.parse(json["createdAt"]),
// updatedAt: DateTime.parse(json["updatedAt"]),
// vendorId: json["vendorId"],
// isActive: json["isActive"],
// couponId: json["couponId"],
// );
// Map<dynamic, dynamic> toJson() => {
// "id": id,
// "storeName": storeName,
// "storeDescription": storeDescription,
// "officialPhoneNumber": officialPhoneNumber,
// "storeAddress": storeAddress,
// "gstNumber": gstNumber,
// "gumastaNumber": gumastaNumber,
// "storePicture": storePicture,
// "createdAt": createdAt,
// "updatedAt": updatedAt,
// "vendorId": vendorId,
// "isActive": isActive,
// "couponId": couponId,
// };
// }
// class WishlistItem {
// dynamic id;
// dynamic wishlistId;
// dynamic productId;
// dynamic storeId;
// DateTime? createdAt;
// DateTime? updatedAt;
// WishlistItem({
// this.id,
// this.wishlistId,
// this.productId,
// this.storeId,
// this.createdAt,
// this.updatedAt,
// });
// factory WishlistItem.fromJson(Map<dynamic, dynamic> json) => WishlistItem(
// id: json["id"],
// wishlistId: json["wishlistId"],
// productId: json["productId"],
// storeId: json["storeId"],
// createdAt: DateTime.parse(json["createdAt"]),
// updatedAt: DateTime.parse(json["updatedAt"]),
// );
// Map<dynamic, dynamic> toJson() => {
// "id": id,
// "wishlistId": wishlistId,
// "productId": productId,
// "storeId": storeId,
// "createdAt": createdAt,
// "updatedAt": updatedAt,
// };
// }
// class ProductReview {
// dynamic id;
// dynamic userId;
// dynamic productId;
// dynamic rating;
// dynamic title;
// dynamic description;
// int? likes;
// int? dislikes;
// int? helpfulCount;
// bool? verifiedPurchase;
// dynamic status;
// DateTime? createdAt;
// DateTime? updatedAt;
// User? user;
// List<ProductReviewImage>? productReviewImage;
// ProductReview({
// this.id,
// this.userId,
// this.productId,
// this.rating,
// this.title,
// this.description,
// this.likes,
// this.dislikes,
// this.helpfulCount,
// this.verifiedPurchase,
// this.status,
// this.createdAt,
// this.updatedAt,
// this.user,
// this.productReviewImage,
// });
// factory ProductReview.fromJson(Map<dynamic, dynamic> json) => ProductReview(
// id: json["id"],
// userId: json["userId"],
// productId: json["productId"],
// rating: json["rating"],
// title: json["title"],
// description: json["description"],
// likes: json["likes"],
// dislikes: json["dislikes"],
// helpfulCount: json["helpfulCount"],
// verifiedPurchase: json["verifiedPurchase"],
// status: json["status"],
// createdAt: DateTime.parse(json["createdAt"]),
// updatedAt: DateTime.parse(json["updatedAt"]),
// user: User.fromJson(json["user"]),
// productReviewImage: List<ProductReviewImage>.from(
// json["ProductReviewImage"]
// .map((x) => ProductReviewImage.fromJson(x))),
// );
// Map<dynamic, dynamic> toJson() => {
// "id": id,
// "userId": userId,
// "productId": productId,
// "rating": rating,
// "title": title,
// "description": description,
// "likes": likes,
// "dislikes": dislikes,
// "helpfulCount": helpfulCount,
// "verifiedPurchase": verifiedPurchase,
// "status": status,
// "createdAt": createdAt,
// "updatedAt": updatedAt,
// "user": user!.toJson(),
// "ProductReviewImage":
// List<dynamic>.from(productReviewImage!.map((x) => x.toJson())),
// };
// }
// class ProductReviewImage {
// dynamic id;
// dynamic reviewId;
// dynamic imageUrl;
// bool? isDefault;
// DateTime? createdAt;
// ProductReviewImage({
// this.id,
// this.reviewId,
// this.imageUrl,
// this.isDefault,
// this.createdAt,
// });
// factory ProductReviewImage.fromJson(Map<dynamic, dynamic> json) =>
// ProductReviewImage(
// id: json["id"],
// reviewId: json["reviewId"],
// imageUrl: json["imageUrl"],
// isDefault: json["isDefault"],
// createdAt: DateTime.parse(json["createdAt"]),
// );
// Map<dynamic, dynamic> toJson() => {
// "id": id,
// "reviewId": reviewId,
// "imageUrl": imageUrl,
// "isDefault": isDefault,
// "createdAt": createdAt,
// };
// }
// class User {
// dynamic id;
// dynamic email;
// dynamic firstName;
// dynamic lastName;
// dynamic name;
// dynamic img;
// dynamic authType;
// dynamic role;
// dynamic phone;
// dynamic password;
// bool? isActive;
// bool? isPhoneVerified;
// dynamic vendorType;
// dynamic businessId;
// bool? isVendorAccountCreated;
// bool? isVendorAccountActive;
// bool? vendorTermsAccepted;
// DateTime? createdAt;
// DateTime? updatedAt;
// dynamic rtHash;
// dynamic resetToken;
// dynamic resetTokenExpiresAt;
// User({
// this.id,
// this.email,
// this.firstName,
// this.lastName,
// this.name,
// this.img,
// this.authType,
// this.role,
// this.phone,
// this.password,
// this.isActive,
// this.isPhoneVerified,
// this.vendorType,
// this.businessId,
// this.isVendorAccountCreated,
// this.isVendorAccountActive,
// this.vendorTermsAccepted,
// this.createdAt,
// this.updatedAt,
// this.rtHash,
// this.resetToken,
// this.resetTokenExpiresAt,
// });
// factory User.fromJson(Map<dynamic, dynamic> json) => User(
// id: json["id"],
// email: json["email"],
// firstName: json["firstName"],
// lastName: json["lastName"],
// name: json["name"],
// img: json["img"],
// authType: json["authType"],
// role: json["role"],
// phone: json["phone"],
// password: json["password"],
// isActive: json["isActive"],
// isPhoneVerified: json["isPhoneVerified"],
// vendorType: json["vendorType"],
// businessId: json["businessId"],
// isVendorAccountCreated: json["isVendorAccountCreated"],
// isVendorAccountActive: json["isVendorAccountActive"],
// vendorTermsAccepted: json["vendorTermsAccepted"],
// createdAt: DateTime.parse(json["createdAt"]),
// updatedAt: DateTime.parse(json["updatedAt"]),
// rtHash: json["rtHash"],
// resetToken: json["resetToken"],
// resetTokenExpiresAt: json["resetTokenExpiresAt"],
// );
// Map<dynamic, dynamic> toJson() => {
// "id": id,
// "email": email,
// "firstName": firstName,
// "lastName": lastName,
// "name": name,
// "img": img,
// "authType": authType,
// "role": role,
// "phone": phone,
// "password": password,
// "isActive": isActive,
// "isPhoneVerified": isPhoneVerified,
// "vendorType": vendorType,
// "businessId": businessId,
// "isVendorAccountCreated": isVendorAccountCreated,
// "isVendorAccountActive": isVendorAccountActive,
// "vendorTermsAccepted": vendorTermsAccepted,
// "createdAt": createdAt,
// "updatedAt": updatedAt,
// "rtHash": rtHash,
// "resetToken": resetToken,
// "resetTokenExpiresAt": resetTokenExpiresAt,
// };
// }
// To parse this JSON data, do
//
// final productDetailsData = productDetailsDataFromJson(jsondynamic);
import 'dart:convert'; import 'dart:convert';
ProductDetailsData productDetailsDataFromJson(dynamic str) => ProductDetailsData productDetailsDataFromJson(dynamic str) =>
@@ -665,7 +43,7 @@ class Data {
dynamic manufacturerName; dynamic manufacturerName;
dynamic manufacturerAddress; dynamic manufacturerAddress;
dynamic countryOfOrigin; dynamic countryOfOrigin;
DateTime? expiryDate; dynamic? expiryDate;
dynamic returnsAllowedDays; dynamic returnsAllowedDays;
dynamic exchangeAllowedDays; dynamic exchangeAllowedDays;
DateTime? createdAt; DateTime? createdAt;
@@ -754,7 +132,7 @@ class Data {
manufacturerName: json["manufacturerName"], manufacturerName: json["manufacturerName"],
manufacturerAddress: json["manufacturerAddress"], manufacturerAddress: json["manufacturerAddress"],
countryOfOrigin: json["countryOfOrigin"], countryOfOrigin: json["countryOfOrigin"],
expiryDate: DateTime.parse(json["expiryDate"]), expiryDate: json["expiryDate"],
returnsAllowedDays: json["returnsAllowedDays"], returnsAllowedDays: json["returnsAllowedDays"],
exchangeAllowedDays: json["exchangeAllowedDays"], exchangeAllowedDays: json["exchangeAllowedDays"],
createdAt: DateTime.parse(json["createdAt"]), createdAt: DateTime.parse(json["createdAt"]),

View File

@@ -225,10 +225,15 @@ class _ProductDetailsState extends State<ProductDetails> {
style: TextStyle( style: TextStyle(
color: Colors.black, fontSize: 14)), color: Colors.black, fontSize: 14)),
Spacer(), Spacer(),
if (provider.productDetails.data!.quantity > 0) if (provider.productDetails.data!.stock > 0) ...{
Text("In Stock", Text("In Stock",
style: TextStyle( style: TextStyle(
color: Colors.green, fontSize: 14)), color: Colors.green, fontSize: 14)),
} else ...{
Text("Out Of Stock",
style: TextStyle(
color: Colors.red, fontSize: 14)),
}
], ],
), ),
Gap(5), Gap(5),

View File

@@ -12,7 +12,7 @@ import geolocator_apple
import package_info_plus import package_info_plus
import path_provider_foundation import path_provider_foundation
import shared_preferences_foundation import shared_preferences_foundation
import sqflite_darwin import sqflite
import url_launcher_macos import url_launcher_macos
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {

View File

@@ -290,18 +290,18 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_inappwebview name: flutter_inappwebview
sha256: "80092d13d3e29b6227e25b67973c67c7210bd5e35c4b747ca908e31eb71a46d5" sha256: "3e9a443a18ecef966fb930c3a76ca5ab6a7aafc0c7b5e14a4a850cf107b09959"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "6.1.5" version: "6.0.0"
flutter_inappwebview_android: flutter_inappwebview_android:
dependency: transitive dependency: transitive
description: description:
name: flutter_inappwebview_android name: flutter_inappwebview_android
sha256: "62557c15a5c2db5d195cb3892aab74fcaec266d7b86d59a6f0027abd672cddba" sha256: d247f6ed417f1f8c364612fa05a2ecba7f775c8d0c044c1d3b9ee33a6515c421
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.3" version: "1.0.13"
flutter_inappwebview_internal_annotations: flutter_inappwebview_internal_annotations:
dependency: transitive dependency: transitive
description: description:
@@ -314,42 +314,34 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: flutter_inappwebview_ios name: flutter_inappwebview_ios
sha256: "5818cf9b26cf0cbb0f62ff50772217d41ea8d3d9cc00279c45f8aabaa1b4025d" sha256: f363577208b97b10b319cd0c428555cd8493e88b468019a8c5635a0e4312bd0f
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.2" version: "1.0.13"
flutter_inappwebview_macos: flutter_inappwebview_macos:
dependency: transitive dependency: transitive
description: description:
name: flutter_inappwebview_macos name: flutter_inappwebview_macos
sha256: c1fbb86af1a3738e3541364d7d1866315ffb0468a1a77e34198c9be571287da1 sha256: b55b9e506c549ce88e26580351d2c71d54f4825901666bd6cfa4be9415bb2636
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.2" version: "1.0.11"
flutter_inappwebview_platform_interface: flutter_inappwebview_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: flutter_inappwebview_platform_interface name: flutter_inappwebview_platform_interface
sha256: cf5323e194096b6ede7a1ca808c3e0a078e4b33cc3f6338977d75b4024ba2500 sha256: "545fd4c25a07d2775f7d5af05a979b2cac4fbf79393b0a7f5d33ba39ba4f6187"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.3.0+1" version: "1.0.10"
flutter_inappwebview_web: flutter_inappwebview_web:
dependency: transitive dependency: transitive
description: description:
name: flutter_inappwebview_web name: flutter_inappwebview_web
sha256: "55f89c83b0a0d3b7893306b3bb545ba4770a4df018204917148ebb42dc14a598" sha256: d8c680abfb6fec71609a700199635d38a744df0febd5544c5a020bd73de8ee07
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.2" version: "1.0.8"
flutter_inappwebview_windows:
dependency: transitive
description:
name: flutter_inappwebview_windows
sha256: "8b4d3a46078a2cdc636c4a3d10d10f2a16882f6be607962dbfff8874d1642055"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
flutter_lints: flutter_lints:
dependency: "direct dev" dependency: "direct dev"
description: description:
@@ -362,10 +354,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: flutter_plugin_android_lifecycle name: flutter_plugin_android_lifecycle
sha256: "615a505aef59b151b46bbeef55b36ce2b6ed299d160c51d84281946f0aa0ce0e" sha256: "9ee02950848f61c4129af3d6ec84a1cfc0e47931abc746b03e7a3bc3e8ff6eda"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.24" version: "2.0.22"
flutter_rating_stars: flutter_rating_stars:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -572,10 +564,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: google_maps_flutter_android name: google_maps_flutter_android
sha256: "1b69fbb3ab76e7a7dfcf25e60f32f81ae5d9b88285343eecb5479116d54be869" sha256: "10cf27bee8c560f8e69992b3a0f27ddf1d7acbea622ddb13ef3f587848a73f26"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.14.12" version: "2.14.7"
google_maps_flutter_ios: google_maps_flutter_ios:
dependency: transitive dependency: transitive
description: description:
@@ -644,10 +636,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: image_picker_android name: image_picker_android
sha256: b62d34a506e12bb965e824b6db4fbf709ee4589cf5d3e99b45ab2287b008ee0c sha256: "8c5abf0dcc24fe6e8e0b4a5c0b51a5cf30cefdf6407a3213dae61edc75a70f56"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.8.12+20" version: "0.8.12+12"
image_picker_for_web: image_picker_for_web:
dependency: transitive dependency: transitive
description: description:
@@ -704,6 +696,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.20.2" version: "0.20.2"
js:
dependency: transitive
description:
name: js
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
url: "https://pub.dev"
source: hosted
version: "0.6.7"
json_annotation: json_annotation:
dependency: transitive dependency: transitive
description: description:
@@ -716,18 +716,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker name: leak_tracker
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "10.0.5" version: "10.0.4"
leak_tracker_flutter_testing: leak_tracker_flutter_testing:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker_flutter_testing name: leak_tracker_flutter_testing
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.5" version: "3.0.3"
leak_tracker_testing: leak_tracker_testing:
dependency: transitive dependency: transitive
description: description:
@@ -772,10 +772,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: material_color_utilities name: material_color_utilities
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.11.1" version: "0.8.0"
material_design_icons_flutter: material_design_icons_flutter:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -788,10 +788,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.15.0" version: "1.12.0"
mime: mime:
dependency: transitive dependency: transitive
description: description:
@@ -884,10 +884,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: path_provider_android name: path_provider_android
sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2" sha256: "6f01f8e37ec30b07bc424b4deabac37cacb1bc7e2e515ad74486039918a37eb7"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.2.15" version: "2.2.10"
path_provider_foundation: path_provider_foundation:
dependency: transitive dependency: transitive
description: description:
@@ -988,18 +988,18 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: shared_preferences name: shared_preferences
sha256: "688ee90fbfb6989c980254a56cb26ebe9bb30a3a2dff439a78894211f73de67a" sha256: "95f9997ca1fb9799d494d0cb2a780fd7be075818d59f00c43832ed112b158a82"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.5.1" version: "2.3.3"
shared_preferences_android: shared_preferences_android:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_android name: shared_preferences_android
sha256: "650584dcc0a39856f369782874e562efd002a9c94aec032412c9eb81419cce1f" sha256: "480ba4345773f56acda9abf5f50bd966f581dac5d514e5fc4a18c62976bbba7e"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.4.4" version: "2.3.2"
shared_preferences_foundation: shared_preferences_foundation:
dependency: transitive dependency: transitive
description: description:
@@ -1081,42 +1081,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: sqflite name: sqflite
sha256: "2d7299468485dca85efeeadf5d38986909c5eb0cd71fd3db2c2f000e6c9454bb" sha256: a43e5a27235518c03ca238e7b4732cf35eabe863a369ceba6cbefa537a66f16d
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.4.1" version: "2.3.3+1"
sqflite_android:
dependency: transitive
description:
name: sqflite_android
sha256: "78f489aab276260cdd26676d2169446c7ecd3484bbd5fead4ca14f3ed4dd9ee3"
url: "https://pub.dev"
source: hosted
version: "2.4.0"
sqflite_common: sqflite_common:
dependency: transitive dependency: transitive
description: description:
name: sqflite_common name: sqflite_common
sha256: "761b9740ecbd4d3e66b8916d784e581861fd3c3553eda85e167bc49fdb68f709" sha256: "3da423ce7baf868be70e2c0976c28a1bb2f73644268b7ffa7d2e08eab71f16a4"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.5.4+6" version: "2.5.4"
sqflite_darwin:
dependency: transitive
description:
name: sqflite_darwin
sha256: "22adfd9a2c7d634041e96d6241e6e1c8138ca6817018afc5d443fef91dcefa9c"
url: "https://pub.dev"
source: hosted
version: "2.4.1+1"
sqflite_platform_interface:
dependency: transitive
description:
name: sqflite_platform_interface
sha256: "8dd4515c7bdcae0a785b0062859336de775e8c65db81ae33dd5445f35be61920"
url: "https://pub.dev"
source: hosted
version: "2.4.0"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
@@ -1153,10 +1129,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: synchronized name: synchronized
sha256: "69fe30f3a8b04a0be0c15ae6490fc859a78ef4c43ae2dd5e8a623d45bfcf9225" sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.3.0+3" version: "3.1.0+1"
term_glyph: term_glyph:
dependency: transitive dependency: transitive
description: description:
@@ -1169,18 +1145,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.7.2" version: "0.7.0"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
name: typed_data name: typed_data
sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.4.0" version: "1.3.2"
url_launcher: url_launcher:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -1193,10 +1169,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_android name: url_launcher_android
sha256: "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193" sha256: f0c73347dfcfa5b3db8bc06e1502668265d39c08f310c29bff4e28eea9699f79
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "6.3.14" version: "6.3.9"
url_launcher_ios: url_launcher_ios:
dependency: transitive dependency: transitive
description: description:
@@ -1289,10 +1265,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: vm_service name: vm_service
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "14.2.5" version: "14.2.1"
web: web:
dependency: transitive dependency: transitive
description: description:
@@ -1305,10 +1281,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: win32 name: win32
sha256: daf97c9d80197ed7b619040e86c8ab9a9dad285e7671ee7390f9180cc828a51e sha256: "68d1e89a91ed61ad9c370f9f8b6effed9ae5e0ede22a270bdfa6daf79fc2290a"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "5.10.1" version: "5.5.4"
xdg_directories: xdg_directories:
dependency: transitive dependency: transitive
description: description:
@@ -1326,5 +1302,5 @@ packages:
source: hosted source: hosted
version: "6.5.0" version: "6.5.0"
sdks: sdks:
dart: ">=3.5.0 <4.0.0" dart: ">=3.4.4 <4.0.0"
flutter: ">=3.24.0" flutter: ">=3.22.0"

View File

@@ -8,7 +8,6 @@
#include <connectivity_plus/connectivity_plus_windows_plugin.h> #include <connectivity_plus/connectivity_plus_windows_plugin.h>
#include <file_selector_windows/file_selector_windows.h> #include <file_selector_windows/file_selector_windows.h>
#include <flutter_inappwebview_windows/flutter_inappwebview_windows_plugin_c_api.h>
#include <geolocator_windows/geolocator_windows.h> #include <geolocator_windows/geolocator_windows.h>
#include <url_launcher_windows/url_launcher_windows.h> #include <url_launcher_windows/url_launcher_windows.h>
@@ -17,8 +16,6 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin")); registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin"));
FileSelectorWindowsRegisterWithRegistrar( FileSelectorWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FileSelectorWindows")); registry->GetRegistrarForPlugin("FileSelectorWindows"));
FlutterInappwebviewWindowsPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FlutterInappwebviewWindowsPluginCApi"));
GeolocatorWindowsRegisterWithRegistrar( GeolocatorWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("GeolocatorWindows")); registry->GetRegistrarForPlugin("GeolocatorWindows"));
UrlLauncherWindowsRegisterWithRegistrar( UrlLauncherWindowsRegisterWithRegistrar(

View File

@@ -5,7 +5,6 @@
list(APPEND FLUTTER_PLUGIN_LIST list(APPEND FLUTTER_PLUGIN_LIST
connectivity_plus connectivity_plus
file_selector_windows file_selector_windows
flutter_inappwebview_windows
geolocator_windows geolocator_windows
url_launcher_windows url_launcher_windows
) )