mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 14:56:20 +01:00
Fix fluttter 3.16 compatibility
This commit is contained in:
parent
bcca6d600a
commit
4c1ba03d6e
2 changed files with 2 additions and 2 deletions
|
@ -186,7 +186,7 @@ class ShareHandler {
|
||||||
file,
|
file,
|
||||||
password: password,
|
password: password,
|
||||||
);
|
);
|
||||||
await Clipboard.setData(ClipboardData(text: share.url));
|
await Clipboard.setData(ClipboardData(text: share.url!));
|
||||||
SnackBarManager().showSnackBar(SnackBar(
|
SnackBarManager().showSnackBar(SnackBar(
|
||||||
content: Text(L10n.global().linkCopiedNotification),
|
content: Text(L10n.global().linkCopiedNotification),
|
||||||
duration: k.snackBarDurationNormal,
|
duration: k.snackBarDurationNormal,
|
||||||
|
|
|
@ -230,7 +230,7 @@ class _Bloc extends Bloc<_Event, _State> with BlocLogger {
|
||||||
file,
|
file,
|
||||||
password: password,
|
password: password,
|
||||||
);
|
);
|
||||||
await Clipboard.setData(ClipboardData(text: share.url));
|
await Clipboard.setData(ClipboardData(text: share.url!));
|
||||||
|
|
||||||
if (getRawPlatform() == NpPlatform.android) {
|
if (getRawPlatform() == NpPlatform.android) {
|
||||||
final textShare = AndroidTextShare(share.url!);
|
final textShare = AndroidTextShare(share.url!);
|
||||||
|
|
Loading…
Reference in a new issue