All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- BREAKING #49 Add button with hotspot attributes to allowed elements, because you can customize them now.
- Allowing customize NodeValidator on Web platform by using
overwriteNodeValidatorBuilder
. - New example,
example\lib\materials_and_scene\change_color.dart
- lints
- Upgrade Dart SDK in the example folder to 2.12.0 to "Running with sound null safety"
- Upgrade
assets/model-viewer.min.js
to v2.1.1 and implements all attributes - Examples support Android API 33
- Dependencies upgrade
- Fix:
Removing disallowed element <SCRIPT> from [object DocumentFragment]
, inlib\src\model_viewer_plus_web.dart
- Update
example\lib\loading\display_poster.dart
- Update
README.md
, due to<model-viewer>
upgrades to 2.0.0 and we have not keep up with it's latest version. So, Flutter Web users should replacesrc="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"
withsrc="./assets/packages/model_viewer_plus/assets/model-viewer.min.js"
to use the js file in our package.
- Add a new example:
example\lib\loading\render_scale.dart
- Update
html_builder.dart
:- Fix
min-camera-orbit
,max-field-of-view
,min-field-of-view
- Fix
- Upgrade
pubspec.yaml
:webview_flutter: ^3.0.1
->webview_flutter: ^3.0.4
url_launcher: ^6.1.0
->url_launcher: ^6.1.5
README.md
:import 'package:model_viewer_plus/model_viewer.dart';
->import 'package:model_viewer_plus/model_viewer_plus.dart';
lib\html_builder.dart
: fix typos and uncommentdebugPrint
for more debug infolib\model_viewer_plus_mobile.dart
: uncommentdebugPrint
for more debug infolib\model_viewer_plus_web.dart
: unique viewType to fix #29- Update
assets/model-viewer.min.js
to v1.20.0
- More examples in
example/lib
lib\html_builder.dart
,lib\model_viewer_plus_mobile.dart
,lib\model_viewer_plus_web.dart
,lib\model_viewer_plus.dart
: implement all the attributes of<model-viewer>
v1.11.1.- ModelViewer.arSacle from
final String? arScale
tofinal ArScale? arScale
, which may be a breaking change. - Update
assets/model-viewer.min.js
to v1.11.1 - Update example dir's gradle version to 7.0.2
lib/src/model_viewer_plus_mobile.dart
- Fix #11, add
gestureRecognizers
- A less elegant solution of #8, open usdz file by url_launcher in SFSafariViewController.
- Fix #11, add
/lib/src/model_viewer_plus_mobile.dart
, update according to the newest document. Fix #9.- Insted of
com.google.ar.core
, now we usecom.google.android.googlequicksearchbox
. This should support the widest possible range of devices. - Mode defaults to
ar_preferred
. Scene Viewer launches in AR native mode as the entry mode. If Google Play Services for AR isn't present, Scene Viewer gracefully falls back to 3D mode as the entry mode.
- Insted of
- Add
arModes
to example, closer to modelviewer.dev's offical example. - Update
example\android\app\build.gradle
compileSdkVersion
to 31 - Update
android_intent_plus
to3.1.1
- Update
webview_flutter
to3.0.1
/lib/src/http_proxy.dart
: empty file
ModelViewer
's defaultbackgroundColor
fromColors.white
toColors.transparent
, due to #12proxy
's null check fix andsetState() {}
for it, due to #10
/lib/src/shim/
withdart_html_fake.dart
anddart_ui_fake.dart
. FixingERROR: The name platformViewRegistry' is being referenced through the prefix 'ui', but it isn't defined in any of the libraries imported using that prefix.
andINFO: Avoid using web-only libraries outside Flutter web plugin
to improve the score on pub.dev.
- example's
/etc/assets
->/assets
/assets/model-viewer.min.js
(v1.10.1, which is actually identical to v1.10.0)
/etc/assets
->/assets
example/flutter_02.png
: Updated the Screenshot.README.md
: README Update.lib/src/model_viewer_plus_web.dart
: Due to the change ofmodel-viewer.js
->model-viewer.min.js
lib/src/model_viewer_plus_mobile.dart
: Due to the change ofmodel-viewer.js
->model-viewer.min.js
, added CircularProgressIndicator while mobile platform loading
/etc/assets/model-viewer.js
: To slim the package size.
- Web Support
lib/src/model_viewer_plus_stub.dart
lib/src/model_viewer_plus_mobile.dart
lib/src/model_viewer_plus_web.dart
lib/model_viewer_plus.dart
lib/src/model_viewer_plus.dart