diff --git a/lib/modules/more/data_and_storage/providers/backup.dart b/lib/modules/more/data_and_storage/providers/backup.dart index 666ff693..891705d3 100644 --- a/lib/modules/more/data_and_storage/providers/backup.dart +++ b/lib/modules/more/data_and_storage/providers/backup.dart @@ -175,17 +175,13 @@ Future doBackUp( alignment: Alignment.topLeft, child: ElevatedButton( onPressed: () { - final box = () { - try { - return context.findRenderObject() as RenderBox?; - } catch (e) { - return null; - } - }(); + final RenderBox? box = + context.findRenderObject() as RenderBox?; SharePlus.instance.share( ShareParams( files: [XFile(p.join(path, "$name.backup"))], - text: "$name.backup", + subject: "$name.backup", + title: "Share Mangayomi backup file", sharePositionOrigin: box == null ? null : box.localToGlobal(Offset.zero) & box.size,