Questions tagged [flutter-test]

Flutter-Test contains tests related to Flutter app including Unit tests, Widget test and end-to-end integration tests using Flutter-Driver.

Flutter officially highlights 3 different types of testing as mentioned here: https://flutter.dev/docs/testing

Unit tests: A unit test tests a single function, method, or class.

Widget tests: A widget test (in other UI frameworks referred to as component test) tests a single widget.

Integration tests: An integration test tests a complete app or a large part of an app.

1961 questions
0
votes
0 answers

I have a big problem with provider and pageView and filtering the lists and validator in TextFormField

I have two hours to deliver. The problem is that I have an sign up page, which is originally a PageView that contains five pages. The first page has an email field only.. Why? When he fills it in, I take the value and compare it if it already exists…
0
votes
0 answers

Test Execution stops when code throws Excetion - I have to press F5 again to resume - Everything seems to work - But am I executing my tests correct?

I am running tests against a Flutter app, things are being mocked with mocktail.dart. Testing frameworks in use are bloc_test.dart and flutter_test.dart. By the way the code is from Felix Angelov's bloc…
Rune Hansen
  • 954
  • 3
  • 16
  • 36
0
votes
2 answers

cant refactor color with shade in Flutter

I am trying to refactor my code. This is my Code ,I am getting Problem import 'package:flutter/material.dart'; class AppBarButton extends StatelessWidget { const AppBarButton( {Key? key, required this.buttnoAction, …
Leskeboy
  • 107
  • 1
  • 1
  • 9
0
votes
1 answer

I am unable to run any Github project on my laptop & receive the following error on running the project

Whenever I download a Flutter Project from Git-hub and try to run it, I receive the following error message. The system cannot find the path specified. Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain Exception: Gradle…
0
votes
1 answer

SDK and android studio issue in flutter doctor

How do i resolve these 2 errors in flutter Unable to locate SDK and Android studio directory flutterError
ThE 2K KiD
  • 43
  • 1
  • 5
0
votes
0 answers

Flutter Rest API

Guys can you help me out that what i am missing in the post request. i don't know why it doesnot update the file. API works fine i have fetched the store detail then i am calling another api to update the store information but something is missed…
0
votes
1 answer

Flutter: After refresing my data is showing

when I click on address textformField then a open a alert dialog box,In this alert dialog box I have Dropdown, when i choose any dropdown item then that time not showing data, when i refresh the page then my data is showing on dropdown show. This…
Deepak
  • 1,664
  • 3
  • 19
  • 52
0
votes
0 answers

Flutter App built on Xcode version 12.5.1 crashes on iOS 14.7

I uploaded an application to AppStore, and it was working fine. app version 5.0.2 Xcode version 12.5.1 I tried to update the application recently. The app is running fine with the emulator on iOS 15 or 14.5, but we received a 14.8 crash report. We…
0
votes
1 answer

data from http request to convert string to list of LatLng in flutter

String map = widget.list[widget.index]['map']; example for "[LatLng(12.82879876203614, 80.12908793985844),LatLng(12.83370395257544, 80.1245865225792),LatLng(12.839642030904889, 80.12061484158039),]" the data of map is now string but I want LatLng…
0
votes
1 answer

Integration testing using Flutter Driver for OTPTextField widget in flutter

I am trying to do integration testing using flutter driver. I am using await driver.enterText(find.byType('OTPTextField')) to enter the otp using flutter driver. But it's stuck at that screen and does nothing and the test fails after termination…
0
votes
2 answers

Get count of documents from other specific collection flutter firebase

I have an application in which I want to get the count of all documents from the specific collection. Here is the Screenshot of my Firebase Firestore I want to get access to all the documents in the Article collection While Staying in the Course…
0
votes
1 answer

flutter: Null check operator used on a null value

I have Business Model. I used that model for posting data in post api. but when i store data in this Business? business = Business(); business.bank!.bankName = _selectedIdProof.toString(); then i got errror. I have Business Model. I used that…
0
votes
1 answer

Flutter example not running on Firebase Test lab

I'm trying to set up Firebase test lab instrumentation test with Flutter. I have tried creating a minimal example but haven't been able to run it on the test lab. The example runs fine on my computer when running with flutter drive. When looking…
Le Hoang Long
  • 428
  • 3
  • 10
0
votes
4 answers

Flutter: A RenderFlex overflowed by 282 pixels on the bottom

I want to scroll only bottom of custom stepper page but got the error. I can't fix this error This is my code import 'package:evillage_app/screens/businessPages/customStepperPage.dart'; import…
0
votes
1 answer

Invalid argument(s): No host specified in URI file:///p4

import 'package:flutter/material.dart'; import '/screens/product_detail_screen.dart'; class Productitem extends StatelessWidget { final String id; final String title; final String imageUrl; Productitem(this.id, this.title,…