Skip to content

Commit 4e04004

Browse files
gitubpatriceclaude
andcommitted
chore(deps): bump syncfusion 27->33 + signaturepad + file_picker 8->11 + intl 0.19->0.20
Aligne avec Read Files Tech v2.9.0 et Pass Tech. - syncfusion_flutter_pdf + pdfviewer 27.1.48 -> 33.2.4 (PDF viewer + creation) - syncfusion_flutter_signaturepad 27.0.0 -> 33.2.4 (signature) - file_picker 8.1.2 -> 11.0.0 (FilePicker.platform.X -> FilePicker.X, 5 fichiers) - intl 0.19.0 -> 0.20.0 (debloque par syncfusion 33) flutter analyze : 0 issue. flutter test : 6/6. APK release 34.0MB OK. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a304d08 commit 4e04004

12 files changed

Lines changed: 65 additions & 47 deletions

lib/screens/cloud/google_drive_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class _GoogleDriveScreenState extends State<GoogleDriveScreen> {
102102
}
103103

104104
Future<void> _upload() async {
105-
final result = await FilePicker.platform.pickFiles(
105+
final result = await FilePicker.pickFiles(
106106
type: FileType.custom,
107107
allowedExtensions: ['pdf'],
108108
);

lib/screens/home_screen.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,12 @@ class _HomeScreenState extends State<HomeScreen> {
143143

144144
Future<void> _loadRecents() async {
145145
final files = await _recentFilesService.load();
146-
if (mounted)
146+
if (mounted) {
147147
setState(() {
148148
_recentFiles = files;
149149
_isLoading = false;
150150
});
151+
}
151152
}
152153

153154
Future<void> _pickAndOpen() async {
@@ -651,8 +652,9 @@ class _HomeTabState extends State<_HomeTab> {
651652

652653
@override
653654
Widget build(BuildContext context) {
654-
if (widget.isLoading)
655+
if (widget.isLoading) {
655656
return const Center(child: CircularProgressIndicator());
657+
}
656658

657659
final favorites = widget.recentFiles.where((f) => f.isFavorite).toList();
658660
final recents = widget.recentFiles.where((f) => !f.isFavorite).toList();

lib/screens/tools/create_pdf_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class _CreatePdfScreenState extends State<CreatePdfScreen> {
8787
}
8888

8989
Future<void> _addImage() async {
90-
final res = await FilePicker.platform.pickFiles(type: FileType.image);
90+
final res = await FilePicker.pickFiles(type: FileType.image);
9191
if (res == null || res.files.single.path == null) return;
9292
setState(() {
9393
_blocks.add(

lib/screens/tools/form_fill_screen.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,12 @@ class _FormFillScreenState extends State<FormFillScreen> {
117117
setState(() => _isAnalyzing = true);
118118
try {
119119
final updated = await _analyzeFields(_path!);
120-
if (mounted)
120+
if (mounted) {
121121
setState(() {
122122
_fields = updated;
123123
_isAnalyzing = false;
124124
});
125+
}
125126
} catch (_) {
126127
if (mounted) setState(() => _isAnalyzing = false);
127128
}

lib/screens/tools/images_to_pdf_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class _ImagesToPdfScreenState extends State<ImagesToPdfScreen> {
1717
bool _isProcessing = false;
1818

1919
Future<void> _pickImages() async {
20-
final result = await FilePicker.platform.pickFiles(
20+
final result = await FilePicker.pickFiles(
2121
type: FileType.image,
2222
allowMultiple: true,
2323
);

lib/screens/tools/pdf_annotate_screen.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class _PdfAnnotateScreenState extends State<PdfAnnotateScreen> {
131131
/// ensuite la déplacer/redimensionner par drag (à implémenter en V2).
132132
Future<void> _addImage() async {
133133
final messenger = ScaffoldMessenger.of(context);
134-
final res = await FilePicker.platform.pickFiles(type: FileType.image);
134+
final res = await FilePicker.pickFiles(type: FileType.image);
135135
if (res == null || res.files.single.path == null) return;
136136
final bytes = await File(res.files.single.path!).readAsBytes();
137137
if (bytes.isEmpty) return;
@@ -170,8 +170,9 @@ class _PdfAnnotateScreenState extends State<PdfAnnotateScreen> {
170170
if (a.tool == _Tool.draw && a.path != null) {
171171
// distance min au tracé
172172
for (final p in a.path!) {
173-
if ((p.dx - dx).abs() < 0.04 && (p.dy - dy).abs() < 0.04)
173+
if ((p.dx - dx).abs() < 0.04 && (p.dy - dy).abs() < 0.04) {
174174
return true;
175+
}
175176
}
176177
return false;
177178
}

lib/screens/tools/signature_screen.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ class _SignatureScreenState extends State<SignatureScreen> {
4747
// Export signature image from pad
4848
final image = await _signatureKey.currentState!.toImage(pixelRatio: 3.0);
4949
final byteData = await image.toByteData(format: ui.ImageByteFormat.png);
50-
if (byteData == null)
50+
if (byteData == null) {
5151
throw Exception('Impossible d\'exporter la signature');
52+
}
5253
final pngBytes = byteData.buffer.asUint8List();
5354

5455
// Load PDF (size + magic bytes validés)

lib/widgets/pdf_picker_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class _PdfPickerScreenState extends State<PdfPickerScreen>
240240
}
241241

242242
Future<void> _browseAnyFolder() async {
243-
final dir = await FilePicker.platform.getDirectoryPath();
243+
final dir = await FilePicker.getDirectoryPath();
244244
if (dir == null || !mounted) return;
245245
final label = dir.split(RegExp(r'[/\\]')).last;
246246
await _browseFolder(dir, label.isEmpty ? 'Dossier' : label);

linux/flutter/generated_plugin_registrant.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66

77
#include "generated_plugin_registrant.h"
88

9+
#include <syncfusion_pdfviewer_linux/syncfusion_pdfviewer_linux_plugin.h>
910
#include <url_launcher_linux/url_launcher_plugin.h>
1011

1112
void fl_register_plugins(FlPluginRegistry* registry) {
13+
g_autoptr(FlPluginRegistrar) syncfusion_pdfviewer_linux_registrar =
14+
fl_plugin_registry_get_registrar_for_plugin(registry, "SyncfusionPdfviewerLinuxPlugin");
15+
syncfusion_pdfviewer_linux_plugin_register_with_registrar(syncfusion_pdfviewer_linux_registrar);
1216
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
1317
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
1418
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);

linux/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6+
syncfusion_pdfviewer_linux
67
url_launcher_linux
78
)
89

0 commit comments

Comments
 (0)