Skip to content

Commit

Permalink
fix: fixed crash while fetching app version
Browse files Browse the repository at this point in the history
  • Loading branch information
SahSantoshh committed Dec 29, 2023
1 parent 1d28510 commit 6160c8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class _VersionWidgetState extends State<VersionWidget> {

Future<void> fetchDeviceInfo() async {
packageInfo = await PackageInfo.fromPlatform();
setState(() {});
if (mounted) setState(() {});
}

@override
Expand Down

0 comments on commit 6160c8d

Please sign in to comment.