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
2 answers

Want only one or|two digits number before the decimal point in textfield flutter. And User can't add more than three digits after the decimal point

Only one or two digits number before the decimal point in texfFormField flutter. And User can't add more than three digits after the decimal point.
0
votes
2 answers

Flutter // click button to execute two function using async and wait on function onPressed and get data from api

try to put some value on local variable on TextField and onPressed to get one variable on local and second variable as given on TextField and the same time click the onPressed to working two functions one is doSomething another one is fetchBalance…
0
votes
1 answer

Powershell or CMD - I want to run two commands at the same time without waiting for the first command to finish

I would like to run two commands (it doesn't matter if it's in powershell or cmd). The commands are as follows. I try to run both at the same time but because chromedriver needs to be running - it hangs forever and never reaches the second…
0
votes
2 answers

How to Navigate different pages in flutter Curvednavigationbar?

I am trying to add different page routing Navigation in Curvednavigationbar insider I tried some different ways But it doesn't work I'm Using curved_navigation_bar: ^1.0.1 for bottomNavigation bar. I was tried different ways but it doesn't…
0
votes
0 answers

Where Flutter creates database on device? (testing with my phone)

My app creates a database using the path provided by "getApplicationDocumentsDirectory" (on Android). When user log in, it saves the user's primary key, email, and Auth Token of the user in the database obtained from API. When the user logs out app…
0
votes
2 answers

iOS flutter app not running after updating device to iOS 14.7.1

After updating my iPhone 11 to iOS version 14.7.1, my flutter app is not launching anymore. Steps already performed: flutter clean flutter pub get flutter run Also, uninstalled and reinstalled the app restarted the phone output: (base)…
Hwebservices
  • 63
  • 3
  • 11
0
votes
2 answers

How can I pass StatefulWidget's constuctor argument to State?

enter image description here How can i assign final String blog_id; value that we get from const KidneyDiseaseBody({Key? key, required this.blog_id}) : super(key: key); in String query = ; in class _KidneyDiseaseBodyState
0
votes
2 answers

flutter: Set show more and show less icon in last of text

I want to use set show more and show less icon in last of text. I want to use set show more and show less icon in last of text. I want to use set show more and show less icon in last of text. I want to use set show more and show less icon in last of…
0
votes
0 answers

Use a List of an async function in another class

I’m basically creating a slideshow that contains texts from a list resulting from an async function. This is the class that contains the homepage, async function and slideshow : class HomePage extends StatefulWidget { HomePage({Key key, this.auth,…
0
votes
2 answers

flutter : I want curve clip on top

I am using multiple curve in my container but that is show on bottom. how to set on top? Please help me. I am using multiple curve in my container but that is show on bottom. how to set on top? Please help me. I am using multiple curve in my…
0
votes
2 answers

Best Approach To Testing App Appearance In Flutter While App Is In Dark/Light Theme (especially for Dark Theme)

After going through the Flutter docs on testing, I have come to a point in my app where I would like to test both light and dark theme appearance on the app. Integration tests could be an option, however they are "expensive" to run and I would like…
Alvindera97
  • 356
  • 1
  • 4
  • 15
0
votes
1 answer

Autovalidate of TextFormField after user interaction

I am developing a flutter e_commerce app, and in registration, the username should be unique, for that, we have an endpoint in API to check either the username is taken or not, my problem is with validation, I need to validate after user…
Mohamad Jabaly
  • 119
  • 2
  • 10
0
votes
0 answers

Google Sign-in error inside my flutter application

after login with google sign-in inside my flutter project, why my app data from database storage is not loading, why? After pressing the google signing button it's logging in, but after login, the data from the database is not loading. enter image…
0
votes
2 answers

flutter: how to create bottom navigation bar like this

I want to make a bottom navigation bar exact like this which is in photo but I can't make. Please help me. I also want devide section between each part. please help me
0
votes
1 answer

Flutter test with mockito and dartz fails

I'm testing a repository implementation but the test fails and I can't find where the error is. This is the repository: class ProductRepositoryImpl implements ProductRepository { final ProductRemoteDataSource remoteDataSource; final NetworkInfo…
Hewerton
  • 29
  • 5
1 2 3
99
100