@@ -5,13 +5,13 @@ import 'package:share_plus/share_plus.dart';
55/// Identifiants des packages Android pour les destinations cloud
66/// supportées par Files Tech.
77class CloudTargets {
8- static const kDrive = 'com.infomaniak.drive' ;
8+ static const kDrive = 'com.infomaniak.drive' ;
99 static const googleDrive = 'com.google.android.apps.docs' ;
1010 static const protonDrive = 'me.proton.android.drive' ;
1111
1212 /// Cible cross-app : ouvre un PDF directement dans PDF Tech depuis RFT.
1313 /// Utilisé par RFT (file_explorer) — pas de cible inverse pour le moment.
14- static const pdfTech = 'com.pdftech.pdf_tech' ;
14+ static const pdfTech = 'com.pdftech.pdf_tech' ;
1515}
1616
1717/// Rangée de boutons d'envoi cloud direct + partage générique.
@@ -65,21 +65,25 @@ class CloudShareRow extends StatelessWidget {
6565 'package' : pkg,
6666 });
6767 } on PlatformException catch (e) {
68- messenger.showSnackBar (SnackBar (
69- content: Text (e.code == 'NOT_INSTALLED'
70- ? '$label n\' est pas installé sur cet appareil.'
71- : 'Erreur d\' envoi vers $label .' ),
72- ));
68+ messenger.showSnackBar (
69+ SnackBar (
70+ content: Text (
71+ e.code == 'NOT_INSTALLED'
72+ ? '$label n\' est pas installé sur cet appareil.'
73+ : 'Erreur d\' envoi vers $label .' ,
74+ ),
75+ ),
76+ );
7377 } on MissingPluginException {
7478 // Channel non enregistré côté Kotlin — typiquement en hot-reload sur un
7579 // build qui ne contient pas encore le handler. Évite le crash.
76- messenger.showSnackBar (SnackBar (
77- content: Text ('Service indisponible pour $label .' ),
78- )) ;
80+ messenger.showSnackBar (
81+ SnackBar ( content: Text ('Service indisponible pour $label .' ) ),
82+ );
7983 } catch (_) {
80- messenger.showSnackBar (SnackBar (
81- content: Text ('Erreur d\' envoi vers $label .' ),
82- )) ;
84+ messenger.showSnackBar (
85+ SnackBar ( content: Text ('Erreur d\' envoi vers $label .' ) ),
86+ );
8387 }
8488 }
8589
@@ -97,20 +101,31 @@ class CloudShareRow extends StatelessWidget {
97101 ),
98102 OutlinedButton .icon (
99103 onPressed: () => _send (context, CloudTargets .kDrive, 'kDrive' ),
100- icon: const Icon (Icons .cloud_upload_outlined,
101- size: 14 , color: Color (0xFF0098FF )),
104+ icon: const Icon (
105+ Icons .cloud_upload_outlined,
106+ size: 14 ,
107+ color: Color (0xFF0098FF ),
108+ ),
102109 label: const Text ('kDrive' , style: TextStyle (fontSize: 12 )),
103110 ),
104111 OutlinedButton .icon (
105- onPressed: () => _send (context, CloudTargets .googleDrive, 'Google Drive' ),
106- icon: const Icon (Icons .cloud_upload_outlined,
107- size: 14 , color: Color (0xFFEA4335 )),
112+ onPressed: () =>
113+ _send (context, CloudTargets .googleDrive, 'Google Drive' ),
114+ icon: const Icon (
115+ Icons .cloud_upload_outlined,
116+ size: 14 ,
117+ color: Color (0xFFEA4335 ),
118+ ),
108119 label: const Text ('Google Drive' , style: TextStyle (fontSize: 12 )),
109120 ),
110121 OutlinedButton .icon (
111- onPressed: () => _send (context, CloudTargets .protonDrive, 'Proton Drive' ),
112- icon: const Icon (Icons .cloud_upload_outlined,
113- size: 14 , color: Color (0xFF6D4AFF )),
122+ onPressed: () =>
123+ _send (context, CloudTargets .protonDrive, 'Proton Drive' ),
124+ icon: const Icon (
125+ Icons .cloud_upload_outlined,
126+ size: 14 ,
127+ color: Color (0xFF6D4AFF ),
128+ ),
114129 label: const Text ('Proton Drive' , style: TextStyle (fontSize: 12 )),
115130 ),
116131 ],
0 commit comments