fix: analyzer

This commit is contained in:
mso7nueh
2025-05-23 12:03:04 +03:00
parent 8dcfa6ee6a
commit b59190e4e8
14 changed files with 58 additions and 63 deletions

View File

@@ -138,11 +138,11 @@ class _MyPlanWidgetState extends State<MyPlanWidget> {
CustomOutlinedButton(
onPressed: () async {
final box = context.findRenderObject() as RenderBox?;
await Share.shareUri(
Uri.parse(
'$baseUrl/ru/plan/${widget.plan.id}',
await SharePlus.instance.share(
ShareParams(
uri: Uri.parse('$baseUrl/ru/plan/${widget.plan.id}'),
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
),
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
);
},
height: 52,