Skip to content

Commit

Permalink
1.2.9+23: Fix web "Unsupported operation: Platform._operatingSystem"
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebueno committed Jun 6, 2024
1 parent e519c6c commit 33dffa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ class _StackerNewsAppState extends State<StackerNewsApp> {
void initState() {
super.initState();

if (mounted && Platform.isAndroid) {
if (!kIsWeb && mounted && Platform.isAndroid) {
_handleIncomingLinks();
_handleInitialUri();
Utils.checkForUpdate();
} else if (mounted && kIsWeb) {
// TODO: Utils.checkForWebUpdate();
}
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: A new Flutter project.
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.2.9+22
version: 1.2.9+23

environment:
sdk: ">=3.4.0 <4.0.0"
Expand Down

0 comments on commit 33dffa9

Please sign in to comment.