Issue How to pass image picked from file from one activity to other in flutter… I am using this code to picked image from gallery. File? image; Future pickImage() async { try { final image = await ImagePicker().pickImage(source: ImageSource.gallery); if
Continue readingTag: flutter-test
Can integration_test package interact with webview?
Issue I use integration_test package to write UI tests on Dart for iOS and Android platforms. I also have a webview in my app showing login page with text fields. I use webview_flutter for it. Does anybody know if tester
Continue readingCan integration_test package interact with webview?
Issue I use integration_test package to write UI tests on Dart for iOS and Android platforms. I also have a webview in my app showing login page with text fields. I use webview_flutter for it. Does anybody know if tester
Continue readingThe method 'IOSInitializationSettings' isn't defined using local notification plugin
Issue flutter_local_notifications: ^11.0.0 I used this library but I can find IOSInitializationSettings please help me. I m trying to integrate push notifications into my flutter app. Solution From the flutter_local_notifications docs, version 10.0 has the following breaking changes: iOS and
Continue readingFlutter test – Find by specific TextField
Issue How to find specific textfield on flutter test. I would like to find specific textfield (for this instance email & password textfield) on widget testing testWidgets so I can test if it is existing on the UI or not.
Continue readingHow to get a BuildContext from WidgetTester?
Issue When doing a Flutter widget test, I can get a context from the WidgetTester if I know something about at least one widget in the tree. E.g., if I know there’s a Text widget in the test widget tree,
Continue readingflutter calling bottom sheet and popup from bottom sheet and refresh first screen
Issue I used the bottom sheet and I’m using navigator.pop on the button inside the bottom sheet but want to refresh the first screen when calling popup… code showModalBottomSheet( context: context, builder: (BuildContext bc) { return Container( child: Wrap( children:
Continue readingMy screen doesn't reflect the changes in my app though the setState method works well
Issue I’m trying to call a StatefulWidget(i.e FirstPage()) within a MaterialApp. I’m pretty much new to flutter and I don’t know where I went wrong. According to my knownledge I’ve used StatefulWidget to tell flutter my screen on that page
Continue readingrun initState of main screen from other screen
Issue I have 3 screens main, page 1, and page 2. I navigate from page1 to page 2. and then pop from page2 to page 1, but during this, I want to run the function of the main screen when
Continue readingError: The argument type 'FlutterDriver?' can't be assigned to the parameter type 'FlutterDriver'
Issue I am pretty new to Flutter and Gherkin and I am trying to follow this tutorial to implement testing with Gherkin in Flutter for a simple counter test. The problem is when I try to run the test on
Continue reading