Skip to content

Commit 4fc4fff

Browse files
committed
v1.8.4+3
1 parent a1f580c commit 4fc4fff

7 files changed

Lines changed: 38 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## 1.8.4+3
4+
5+
### Added
6+
7+
- Add file handling service with platform-specific implementations for downloading and opening files
8+
- Add FileService utility class for file type detection and URL launching
9+
- Add support for various file types including office documents, images, videos, and PDFs
10+
11+
### Changed
12+
13+
- Update version to 1.8.4+3
14+
15+
### Technical
16+
17+
- Implement FileHandler service with conditional imports for web and IO platforms
18+
- Add comprehensive file type detection methods in FileService
19+
- Integrate open_file dependency for cross-platform file handling
20+
21+
322
## 1.8.4+2
423

524
- Update README

example/pubspec.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ packages:
165165
dependency: transitive
166166
description:
167167
name: file_picker
168-
sha256: ab13ae8ef5580a411c458d6207b6774a6c237d77ac37011b13994879f68a8810
168+
sha256: "77f8e81d22d2a07d0dee2c62e1dda71dc1da73bf43bb2d45af09727406167964"
169169
url: "https://pub.dev"
170170
source: hosted
171-
version: "8.3.7"
171+
version: "10.1.9"
172172
file_selector_linux:
173173
dependency: transitive
174174
description:
@@ -395,10 +395,10 @@ packages:
395395
dependency: transitive
396396
description:
397397
name: get_it
398-
sha256: d85128a5dae4ea777324730dc65edd9c9f43155c109d5cc0a69cab74139fbac1
398+
sha256: f126a3e286b7f5b578bf436d5592968706c4c1de28a228b870ce375d9f743103
399399
url: "https://pub.dev"
400400
source: hosted
401-
version: "7.7.0"
401+
version: "8.0.3"
402402
go_router:
403403
dependency: transitive
404404
description:
@@ -1039,7 +1039,7 @@ packages:
10391039
path: ".."
10401040
relative: true
10411041
source: path
1042-
version: "1.8.3"
1042+
version: "1.8.4+2"
10431043
supa_carbon_icons:
10441044
dependency: transitive
10451045
description:

lib/blocs/push_notification/push_notification_state.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sealed class PushNotificationState {
77
/// Converts the PushNotificationOpened state to a JSON map.
88
///
99
/// **Returns:**
10-
/// - A Map<String, dynamic> representing the state in JSON format.
10+
/// - A Map\<String, dynamic\> representing the state in JSON format.
1111
Map<String, dynamic> toJson();
1212
}
1313

lib/models/admin_type.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
import 'package:supa_architecture/models/enum_model.dart';
22

3+
/// This class is used to represent the admin type.
4+
/// This can be used as a EnumModel.
35
class AdminType extends EnumModel {}

lib/models/admin_type_filter.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
import 'package:supa_architecture/models/enum_model_filter.dart';
22

3+
/// This class is used to represent the admin type filter.
4+
/// This is just a wrapper for the EnumModelFilter.
35
class AdminTypeFilter extends EnumModelFilter {}

lib/services/file_handler_web.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import 'dart:html' as html;
1+
import 'package:web/web.dart';
22

33
Future<void> downloadAndOpenFile(String url, String filename) async {
4-
html.AnchorElement(href: url)
5-
..setAttribute('download', filename)
6-
..click();
4+
final anchor = document.createElement('a') as HTMLAnchorElement;
5+
anchor.href = url;
6+
anchor.download = filename;
7+
anchor.click();
78
}

pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: supa_architecture
22
description: Architecture library for Supa Flutter applications
3-
version: 1.8.4+2
3+
version: 1.8.4+3
44
homepage: https://github.supa.vn
55

66
environment:
@@ -18,21 +18,21 @@ dependencies:
1818
device_info_plus: ^11.0.0
1919
dio: ^5.7.0
2020
equatable: ^2.0.0
21-
file_picker: ^8.1.0
21+
file_picker: ^10.0.0
2222
firebase_core: ^3.0.0
2323
firebase_crashlytics: ^4.0.0
2424
firebase_messaging: ^15.0.0
2525
flutter_bloc: ^9.0.0
2626
flutter_dotenv: ^5.0.0
2727
flutter_secure_storage: ^9.2.0
28-
get_it: ^7.7.0
28+
get_it: ^8.0.0
2929
go_router: ^14.0.0
3030
google_sign_in: ^6.0.0
3131
hive: ^2.2.0
3232
hive_flutter: ^1.1.0
3333
image_picker: ^1.1.0
3434
infinite_scroll_pagination: ^4.1.0
35-
injectable: ^2.4.0
35+
injectable: ^2.5.0
3636
intl: ^0.19.0
3737
local_auth: ^2.0.0
3838
package_info_plus: ^8.0.0

0 commit comments

Comments
 (0)