Skip to content

Commit

Permalink
remove model_viewer_plus for android
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkbee1 committed Sep 13, 2023
1 parent 52e4ecd commit db0e629
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 29 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
16 changes: 0 additions & 16 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "5.13.0"
android_intent_plus:
dependency: transitive
description:
name: android_intent_plus
sha256: f72ae20bb37108694f442e7ae6acbd28b453ca62ce86842f6787b784355abfe6
url: "https://pub.dev"
source: hosted
version: "4.0.2"
ansicolor:
dependency: transitive
description:
Expand Down Expand Up @@ -1537,14 +1529,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.3.0"
model_viewer_plus:
dependency: "direct main"
description:
name: model_viewer_plus
sha256: daeee3c498ece539125933e233252aebdc0b6d842538efb7061f7eaf3b97939e
url: "https://pub.dev"
source: hosted
version: "1.7.0"
nested:
dependency: transitive
description:
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ dependencies:
matrix: ^0.22.3
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 db0e629

Please sign in to comment.