First of all, great work on this repository. I'm starting to learn dart/flutter but your project is quite close to what I'm planning to build so it's really helpful in learning.
I've just tried to clone your code and run it on Ubuntu 22.04 with the following version
$ flutter --version
Flutter 3.0.5 β’ channel stable β’ https://github.com/flutter/flutter.git
Framework β’ revision f1875d570e (4 weeks ago) β’ 2022-07-13 11:24:16 -0700
Engine β’ revision e85ea0e79c
Tools β’ Dart 2.17.6 β’ DevTools 2.12.2
However, when running flutter run -d chrome
or flutter run -d linux
i'm getting the following exception:
The following UnsupportedError was thrown building Consumer<AppProvider>(dirty, dependencies:
[_InheritedProviderScope<AppProvider?>]):
Unsupported operation: Platform._operatingSystem
The relevant error-causing widget was:
Consumer<AppProvider> Consumer:file:///home/user/projects/project/lib/app.dart:13:12
When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 251:49 throw_
dart-sdk/lib/_internal/js_dev_runtime/patch/io_patch.dart 244:5 _operatingSystem
dart-sdk/lib/io/platform_impl.dart 56:40 get operatingSystem
dart-sdk/lib/io/platform.dart 64:45 get _operatingSystem
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 839:8 get
dart-sdk/lib/io/platform.dart 153:47 get isIOS
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 839:8 get
packages/filex/app.dart 22:26 <fn>
...
Another exception was thrown: Unsupported operation: Platform._operatingSystem
According to your Readme it's supposed to work on my machine. Any chance you could point at things to check?
Any help really appreciated :)