flutter_workmanager
flutter_workmanager copied to clipboard
Build Failures in Example App: Missing Parameters and Undefined Methods in Workmanager
I encountered compilation errors while running the example app from the flutter_workmanager
repository.
Environment
- Flutter version: 3.24.3
- Dart version: 3.5.3
- Android Emulator API: 30
- iOS Simulator: iPhone 16 Plus
Errors Encountered
- Error: No named parameter with the name 'flexInterval'.
- Error: The method 'registerProcessingTask' isn't defined for the class 'Workmanager'.
- Error: The method 'isScheduledByUniqueName' isn't defined for the class 'Workmanager'.
- Error: The method 'printScheduledTasks' isn't defined for the class 'Workmanager'.
Steps to Reproduce
- Clone the https://github.com/fluttercommunity/flutter_workmanager repository.
- Navigate to the
example
folder. - Run
flutter pub get
. - Attempt to run the app on an Android Emulator or iOS Simulator.
Request for Guidance
The README for the example
app appears to lack detailed instructions for setting it up and running it correctly. If there are specific steps or configurations required that are not mentioned, could you please provide some guidance? This would greatly help users who may encounter similar issues when trying to run the example
app.
Thank you!