Skip to content

Commit

Permalink
Revert "remove model_viewer_plus for android"
Browse files Browse the repository at this point in the history
This reverts commit db0e629.
  • Loading branch information
hawkbee1 committed May 13, 2024
1 parent b65cf32 commit 4938bc4
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 50 deletions.
24 changes: 12 additions & 12 deletions lib/dashboard/home/tab_bar/nft/view/nft_details_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:altme/wallet/cubit/wallet_cubit.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_html/flutter_html.dart';
// import 'package:model_viewer_plus/model_viewer_plus.dart';
import 'package:model_viewer_plus/model_viewer_plus.dart';

class NftDetailsPage extends StatelessWidget {
const NftDetailsPage({
Expand Down Expand Up @@ -363,17 +363,17 @@ class NftPicture extends StatelessWidget {

@override
Widget build(BuildContext context) {
// if (AltMeStrings.contractDontSendAddress
// .contains(widget.nftModel.contractAddress)) {
// return ModelViewer(
// src: widget.nftModel.artifactUrl!,
// poster: widget.nftModel.thumbnailUrl,
// alt: '',
// ar: false,
// autoRotate: false,
// disableZoom: true,
// );
// }
if (AltMeStrings.contractDontSendAddress
.contains(widget.nftModel.contractAddress)) {
return ModelViewer(
src: widget.nftModel.artifactUrl!,
poster: widget.nftModel.thumbnailUrl,
alt: '',
ar: false,
autoRotate: false,
disableZoom: true,
);
}
return CachedImageFromNetwork(
widget.nftModel.displayUrl ?? (widget.nftModel.thumbnailUrl ?? ''),
fit: BoxFit.contain,
Expand Down
92 changes: 54 additions & 38 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "6.4.1"
android_intent_plus:
dependency: transitive
description:
name: android_intent_plus
sha256: "2bfdbee8d65e7c26f88b66f0a91f2863da4d3596d8a658b4162c8de5cf04b074"
url: "https://pub.dev"
source: hosted
version: "5.0.2"
ansicolor:
dependency: transitive
description:
Expand Down Expand Up @@ -53,10 +61,10 @@ packages:
dependency: "direct main"
description:
name: asn1lib
sha256: c9c85fedbe2188b95133cbe960e16f5f448860f7133330e272edbbca5893ddc6
sha256: "58082b3f0dca697204dbab0ef9ff208bfaea7767ea771076af9a343488428dda"
url: "https://pub.dev"
source: hosted
version: "1.5.2"
version: "1.5.3"
async:
dependency: "direct main"
description:
Expand Down Expand Up @@ -286,10 +294,10 @@ packages:
dependency: "direct main"
description:
name: camera
sha256: "9499cbc2e51d8eb0beadc158b288380037618ce4e30c9acbc4fae1ac3ecb5797"
sha256: dfa8fc5a1adaeb95e7a54d86a5bd56f4bb0e035515354c8ac6d262e35cec2ec8
url: "https://pub.dev"
source: hosted
version: "0.10.5+9"
version: "0.10.6"
camera_android:
dependency: transitive
description:
Expand Down Expand Up @@ -414,10 +422,10 @@ packages:
dependency: transitive
description:
name: coverage
sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76"
sha256: "3945034e86ea203af7a056d98e98e42a5518fff200d6e8e6647e1886b07e936e"
url: "https://pub.dev"
source: hosted
version: "1.7.2"
version: "1.8.0"
credential_manifest:
dependency: "direct main"
description:
Expand Down Expand Up @@ -803,10 +811,10 @@ packages:
dependency: transitive
description:
name: file_selector_macos
sha256: b15c3da8bd4908b9918111fa486903f5808e388b8d1c559949f584725a6594d6
sha256: f42eacb83b318e183b1ae24eead1373ab1334084404c8c16e0354f9a3e55d385
url: "https://pub.dev"
source: hosted
version: "0.9.3+3"
version: "0.9.4"
file_selector_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -1037,50 +1045,50 @@ packages:
dependency: transitive
description:
name: flutter_secure_storage
sha256: ffdbb60130e4665d2af814a0267c481bcf522c41ae2e43caf69fa0146876d685
sha256: c0f402067fb0498934faa6bddd670de0a3db45222e2ca9a068c6177c9a2360a4
url: "https://pub.dev"
source: hosted
version: "9.0.0"
version: "9.1.1"
flutter_secure_storage_linux:
dependency: transitive
description:
name: flutter_secure_storage_linux
sha256: "3d5032e314774ee0e1a7d0a9f5e2793486f0dff2dd9ef5a23f4e3fb2a0ae6a9e"
sha256: "4d91bfc23047422cbcd73ac684bc169859ee766482517c22172c86596bf1464b"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
version: "1.2.1"
flutter_secure_storage_macos:
dependency: transitive
description:
name: flutter_secure_storage_macos
sha256: bd33935b4b628abd0b86c8ca20655c5b36275c3a3f5194769a7b3f37c905369c
sha256: "8cfa53010a294ff095d7be8fa5bb15f2252c50018d69c5104851303f3ff92510"
url: "https://pub.dev"
source: hosted
version: "3.0.1"
version: "3.1.0"
flutter_secure_storage_platform_interface:
dependency: transitive
description:
name: flutter_secure_storage_platform_interface
sha256: "0d4d3a5dd4db28c96ae414d7ba3b8422fd735a8255642774803b2532c9a61d7e"
sha256: "301f67ee9b87f04aef227f57f13f126fa7b13543c8e7a93f25c5d2d534c28a4a"
url: "https://pub.dev"
source: hosted
version: "1.0.2"
version: "1.1.1"
flutter_secure_storage_web:
dependency: transitive
description:
name: flutter_secure_storage_web
sha256: "30f84f102df9dcdaa2241866a958c2ec976902ebdaa8883fbfe525f1f2f3cf20"
sha256: f4ebff989b4f07b2656fb16b47852c0aab9fed9b4ec1c70103368337bc1886a9
url: "https://pub.dev"
source: hosted
version: "1.1.2"
version: "1.2.1"
flutter_secure_storage_windows:
dependency: transitive
description:
name: flutter_secure_storage_windows
sha256: "5809c66f9dd3b4b93b0a6e2e8561539405322ee767ac2f64d084e2ab5429d108"
sha256: b20b07cb5ed4ed74fc567b78a72936203f587eba460af1df11281c9326cd3709
url: "https://pub.dev"
source: hosted
version: "3.0.0"
version: "3.1.2"
flutter_sodium:
dependency: transitive
description:
Expand Down Expand Up @@ -1263,10 +1271,10 @@ packages:
dependency: transitive
description:
name: image_picker_android
sha256: "40e24f467b75cd6f4a92ee93dd13d1a7bcb4523a84fd95f00c755f01f42398c8"
sha256: "79455f6cff4cbef583b2b524bbf0d4ec424e5959f4d464e36ef5323715b98370"
url: "https://pub.dev"
source: hosted
version: "0.8.11"
version: "0.8.12"
image_picker_for_web:
dependency: transitive
description:
Expand All @@ -1279,10 +1287,10 @@ packages:
dependency: transitive
description:
name: image_picker_ios
sha256: f74064bc548b5164a033ec05638e23c91be1a249c255e0f56319dddffd759794
sha256: cb0db0ec0d3e2cd49674f2e6053be25ccdb959832607c1cbd215dd6cf10fb0dd
url: "https://pub.dev"
source: hosted
version: "0.8.10+1"
version: "0.8.11"
image_picker_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -1461,10 +1469,10 @@ packages:
dependency: transitive
description:
name: local_auth_darwin
sha256: "33381a15b0de2279523eca694089393bb146baebdce72a404555d03174ebc1e9"
sha256: "959145a4cf6f0de745b9ec9ac60101270eb4c5b8b7c2a0470907014adc1c618d"
url: "https://pub.dev"
source: hosted
version: "1.2.2"
version: "1.3.0"
local_auth_platform_interface:
dependency: transitive
description:
Expand All @@ -1485,10 +1493,10 @@ packages:
dependency: transitive
description:
name: logger
sha256: "8c94b8c219e7e50194efc8771cd0e9f10807d8d3e219af473d89b06cc2ee4e04"
sha256: af05cc8714f356fd1f3888fb6741cbe9fbe25cdb6eedbab80e1a6db21047d4a4
url: "https://pub.dev"
source: hosted
version: "2.2.0"
version: "2.3.0"
logging:
dependency: transitive
description:
Expand Down Expand Up @@ -1593,6 +1601,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.3"
model_viewer_plus:
dependency: "direct main"
description:
name: model_viewer_plus
sha256: "633efbd081efe9af8b149c5553fa1e3e83a298ccc151955b0fe9d56a666943be"
url: "https://pub.dev"
source: hosted
version: "1.7.2"
nested:
dependency: transitive
description:
Expand Down Expand Up @@ -1732,10 +1748,10 @@ packages:
dependency: transitive
description:
name: path_provider_foundation
sha256: "5a7999be66e000916500be4f15a3633ebceb8302719b47b9cc49ce924125350f"
sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16
url: "https://pub.dev"
source: hosted
version: "2.3.2"
version: "2.4.0"
path_provider_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -2131,10 +2147,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_foundation
sha256: "7708d83064f38060c7b39db12aefe449cb8cdc031d6062280087bc4cdb988f5c"
sha256: "0a8a893bf4fd1152f93fec03a415d11c27c74454d96e2318a7ac38dd18683ab7"
url: "https://pub.dev"
source: hosted
version: "2.3.5"
version: "2.4.0"
shared_preferences_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -2280,10 +2296,10 @@ packages:
dependency: transitive
description:
name: sqlite3
sha256: "1abbeb84bf2b1a10e5e1138c913123c8aa9d83cd64e5f9a0dd847b3c83063202"
sha256: b384f598b813b347c5a7e5ffad82cbaff1bec3d1561af267041e66f6f0899295
url: "https://pub.dev"
source: hosted
version: "2.4.2"
version: "2.4.3"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -2457,10 +2473,10 @@ packages:
dependency: transitive
description:
name: url_launcher_ios
sha256: "9149d493b075ed740901f3ee844a38a00b33116c7c5c10d7fb27df8987fb51d5"
sha256: "7068716403343f6ba4969b4173cbf3b84fc768042124bc2c011e5d782b24fe89"
url: "https://pub.dev"
source: hosted
version: "6.2.5"
version: "6.3.0"
url_launcher_linux:
dependency: transitive
description:
Expand All @@ -2473,10 +2489,10 @@ packages:
dependency: transitive
description:
name: url_launcher_macos
sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234
sha256: "9a1a42d5d2d95400c795b2914c36fdcb525870c752569438e4ebb09a2b5d90de"
url: "https://pub.dev"
source: hosted
version: "3.1.0"
version: "3.2.0"
url_launcher_platform_interface:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ dependencies:
matrix: ^0.25.5
mime: ^1.0.4
mobile_scanner: ^3.2.0
model_viewer_plus: ^1.7.0
network_image_mock: ^2.1.1
no_screenshot: ^0.0.1+6
oidc4vc:
Expand Down

0 comments on commit 4938bc4

Please sign in to comment.