Skip to content

v1: add flet-dev extensions to client #5304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: v1
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -42,7 +42,7 @@ void main([List<String>? 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();
Expand Down
10 changes: 5 additions & 5 deletions client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions packages/flet/lib/src/models/asset_source.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)';
}
}