My problem is with the first part. For some reason,getApplicationDocumentsDirectory();throws an error when not used inside a StatefulWidget widget. I have two questions: Why on earth would getting a path require a StatefulWidget? How can I do what I want? I need to initialize Dio as early...
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value #0 ConnectivityPlusLinuxPlugin._startListenConnectivity (package:connectivity_plus/src/connectivity_plus_linux.dart:68) <asynchronous suspension> ...
Available add-ons Advanced Security Enterprise-grade security features GitHub Copilot Enterprise-grade AI features ardio/HttpClientPublic forked fromamcewen/HttpClient NotificationsYou must be signed in to change notification settings Fork0 Star0
My problem is with the first part. For some reason,getApplicationDocumentsDirectory();throws an error when not used inside a StatefulWidget widget. I have two questions: Why on earth would getting a path require a StatefulWidget? How can I do what I want? I need to initialize Dio ...