diff --git a/client/lib/main.dart b/client/lib/main.dart index e12897a25..6cd92b2cd 100644 --- a/client/lib/main.dart +++ b/client/lib/main.dart @@ -9,7 +9,7 @@ import 'package:flet_audio/flet_audio.dart' as flet_audio; // as flet_audio_recorder; // import "package:flet_flashlight/flet_flashlight.dart" as flet_flashlight; // import 'package:flet_geolocator/flet_geolocator.dart' as flet_geolocator; -// import 'package:flet_lottie/flet_lottie.dart' as flet_lottie; +import 'package:flet_lottie/flet_lottie.dart' as flet_lottie; // import 'package:flet_map/flet_map.dart' as flet_map; // import 'package:flet_permission_handler/flet_permission_handler.dart' // as flet_permission_handler; @@ -42,7 +42,7 @@ void main([List? args]) async { // flet_audio_recorder.ensureInitialized(); // flet_geolocator.ensureInitialized(); // flet_permission_handler.ensureInitialized(); - // flet_lottie.ensureInitialized(); + extensions.add(flet_lottie.Extension()); // flet_map.ensureInitialized(); // flet_ads.ensureInitialized(); // flet_rive.ensureInitialized(); diff --git a/client/pubspec.yaml b/client/pubspec.yaml index d72f459ef..0f25e7177 100644 --- a/client/pubspec.yaml +++ b/client/pubspec.yaml @@ -44,11 +44,11 @@ dependencies: ref: v1 path: src/flutter/flet_video # --FAT_CLIENT_END-- -# flet_lottie: -# git: -# url: https://github.com/flet-dev/flet-lottie.git -# ref: 0.1.0 -# path: src/flutter/flet_lottie + flet_lottie: + git: + url: https://github.com/flet-dev/flet-lottie.git + ref: v1 + path: src/flutter/flet_lottie # flet_map: # git: # url: https://github.com/flet-dev/flet-map.git diff --git a/packages/flet/lib/src/models/asset_source.dart b/packages/flet/lib/src/models/asset_source.dart index 1134ebe6e..5227d65a1 100644 --- a/packages/flet/lib/src/models/asset_source.dart +++ b/packages/flet/lib/src/models/asset_source.dart @@ -3,4 +3,9 @@ class AssetSource { final bool isFile; const AssetSource({required this.path, required this.isFile}); + + @override + String toString() { + return 'AssetSource(path: $path, isFile: $isFile)'; + } }