- Update dependencies(remove
webview_flutter_android
andwebview_flutter_wkwebview
)
- Replace
dart:html
topackage:web
for wasm support
- Upgrade
<model-viewer>
to 3.5.0 - Updates examples
- Updates minimum supported SDK version to Flutter 3.22/Dart 3.4
- Update dependencies
- Fake for web implementation for Flutter 3.13
- Links for images in README
- Specify platforms
- Error with replaceAll on empty string
- Align Dart 3 and Flutter 3.10.0 for
platformViewRegistry
- Update example
- Update license
- Add topics
- Upgrade dependencies(webview_flutter, android_intent_plus) and align min Flutter SDK to 3.3.0
- Upgrade
<model-viewer>
to v3.2.0
- Fix analysis issues
- 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
- Upgrade dependencies
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.
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)
- Updated the Screenshot
- README Update
- Web Support
- Set
android:usesCleartextTraffic="true"
for Android 9+ in the example app to fixnet::ERR_CLEARTEXT_NOT_PERMITTED
. ([#7]) - Improved the reliability of the
localhost
HTTP proxy
- Documented
android:usesCleartextTraffic="true"
in the README. ([#7])
- Defaulted the background color to white when not specified. ([#7])
- Required flutter_android 0.8.0
- Support for loading bundled asset files
- Support for loading local files from
file://
URLs - Implemented a
localhost
HTTP server and proxy
- Required flutter_android for launching the Scene Viewer. ([#4])
- Upgraded to model-viewer.js 1.1.0
- Launching the Scene Viewer on Android now works. (Fixes [#4])
- Improved error logging in case of loading errors
- Escaped HTML attributes on the
<model-viewer>
web component