Sebastian Roth
Sebastian Roth
Could you try this with version 2.0.0-pre1?
Errors like: ``` Exception has occurred. DioError (DioError [DioErrorType.cancel]: Source stack: #0 DioMixin.fetch (package:dio/src/dio_mixin.dart:473:35) #1 DioMixin.request (package:dio/src/dio_mixin.dart:468:12) #2 DioMixin.requestUri (package:dio/src/dio_mixin.dart:422:12) #3 DioMixin.getUri (package:dio/src/dio_mixin.dart:72:12) #4 paginatedQuestionsProvider. (package:stackoverflow/home.dart:79:8) #5 paginatedQuestionsProvider. (package:stackoverflow/home.dart:54:37) #6...
> If waited for long enough (or release build) the errors seem to have no impact yet interrupt the development workflow. Correction this now stopped loading on this screen:
> fwiw, the callback succeeds without any exception if I add `SharedPreferences.setMockInitialValues({});` before the `final prefs = await SharedPreferences.getInstance();`. But that doesn't help as that's only intended to be used...
> Yes, the plugin `flutter_secure_storage` works fine! I'm also using [sqflite](https://pub.dev/packages/sqflite) and [local_notifications](https://pub.dev/packages/flutter_local_notifications) and they work fine. It's just `SharedPreferences`. > > Any ideas why some plugins work and others...
Does it also happen on a android 11 device or emulator?
Try wrapping the code inside `loadCounterValueJob` in a `try` `catch` block. I suspect a error is thrown but uncaught which causes the task to be cancelled.
Interesting. Do you have permissions? Can you upload a small sample repo on Github so it becomes easy to debug?
`inputData` is not available on iOS. This needs to be documented better perhaps.
Hi @Turburlar you raise good points. Are you interested in helping out? I'm currently quite busy with personal life and won't be able to spend a lot of time soon.