Skip to content

Commit

Permalink
fix: renderbox may be null when sharing (#4975)
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurtanuki authored Jan 25, 2024
1 parent 1807968 commit 03b747c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/smooth_app/lib/pages/product/new_product_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ class _ProductPageState extends State<ProductPage>
'/product/$barcode';
Share.share(
appLocalizations.share_product_text(url),
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
sharePositionOrigin:
box == null ? null : box.localToGlobal(Offset.zero) & box.size,
);
}

Expand Down

0 comments on commit 03b747c

Please sign in to comment.