Skip to content

Commit

Permalink
Flutter Wasm Compatibility
Browse files Browse the repository at this point in the history
Getting the editor and Flutter runtime compatible with Flutter Wasm

https://docs.flutter.dev/platform-integration/web/wasm

Diffs=
0b1834a1a Flutter Wasm Compatibility (#7283)

Co-authored-by: Philip Chung <[email protected]>
  • Loading branch information
philter and philter committed May 22, 2024
1 parent 23f0ac6 commit a0e22e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
265c009852e86492deb69277ad18aa2c394c93e5
0b1834a1ac1df3392314f44a3d7dfb135a8a3f6b
2 changes: 1 addition & 1 deletion lib/src/platform.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'platform_native.dart' if (dart.library.html) 'platform_web.dart';
import 'platform_native.dart' if (dart.library.js_interop) 'platform_web.dart';

abstract class Platform {
bool get isTesting;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/rive_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import 'package:rive/src/generated/assets/font_asset_base.dart';
import 'package:rive/src/generated/nested_artboard_base.dart';
import 'package:rive/src/generated/text/text_base.dart';
import 'package:rive/src/local_file_io.dart'
if (dart.library.html) 'package:rive/src/local_file_web.dart';
if (dart.library.js_interop) 'package:rive/src/local_file_web.dart';
import 'package:rive/src/rive_core/animation/blend_state_1d.dart';
import 'package:rive/src/rive_core/animation/blend_state_direct.dart';
import 'package:rive/src/rive_core/animation/keyed_object.dart';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
http: ">=0.13.3 <2.0.0"
meta: ^1.3.0
plugin_platform_interface: ^2.0.2
rive_common: 0.4.8
rive_common: 0.4.9
dev_dependencies:
flutter_test:
sdk: flutter
Expand Down

0 comments on commit a0e22e4

Please sign in to comment.