fix: remove deprecated code
This commit is contained in:
parent
d9b56a95aa
commit
44f0bfd8b5
1 changed files with 2 additions and 2 deletions
|
@ -156,8 +156,8 @@ Future<void> _exportCodes(BuildContext context, String fileContent) async {
|
|||
}
|
||||
codeFile.writeAsStringSync(fileContent);
|
||||
final Size size = MediaQuery.of(context).size;
|
||||
await Share.shareFiles(
|
||||
[codeFile.path],
|
||||
await Share.shareXFiles(
|
||||
[XFile(codeFile.path)],
|
||||
sharePositionOrigin: Rect.fromLTWH(0, 0, size.width, size.height / 2),
|
||||
);
|
||||
Future.delayed(const Duration(seconds: 30), () async {
|
||||
|
|
Loading…
Add table
Reference in a new issue