I have this simplified dart file using dart:js: (dataLayer is used for Google tags, if that's any help) @JS() import 'package:js/js.dart'; @JS('dataLayer.push'
I wrote a few unit and widget tests for my Flutter app. They all pass when called from the testing window out of VSCode: But when I call flutter test from the
Have this abstract class to get data from remote data source abstract class NumberTriviaRemoteDataSource { /// Calls the http://numberapi.com/{number} endpoin
I am trying to open my downloaded PDF file within my app then it shows fine, but when I open it from any other app like PDF reader its shows file format is not
getting this issue when we click on back camera while using the app .. any one could you please find and send the solution to this issue in flutter Exception ha
I'm using SQLite for storing data locally. insert an image as a string and get them to show here is the error that occurs _Exception (Exception: Invalid image d
Let's say, I have a test for a screen in Flutter using WidgetTester. There is a button, which executes a navigation via Navigator. I would like to test behavior
I am trying to create tests for my Flutter application. Simple example: class MyWidget extends StatelessWidget { @override build(BuildContext context) {
I am running the following test @TestOn('chrome') import 'package:flutter_test/flutter_test.dart'; import 'package:flutter/foundation.dart'; import 'package:m
I can't ignore any async Functions from code coverage. I try to exclude File.exists() from my Code coverage. Attempts: Tried with // coverage:ignore-line ->
I have this class: import 'package:flutter/material.dart'; class AgeText extends StatelessWidget { final String dateOfBirth; const AgeText({Key key, @req
I want to create a cartview by allowing an item to be selected once I click on the Icon Button then the item is pushed to the cartview and it can show if the it
Widget test for elevated button background color test fails, My Build method of Button @override Widget build(BuildContext context) { return Container
Whenever I tried to do register and tap on the register button then I am having this type of problem with the null check operator used on null values. I get thi
I have an issue with trying to test Share package. My code looks like this: IconButton( key: Key('share-button'), icon: Icon(Platform.isAndroid ? Icons.shar
My question is about flutter widget test, what is proper way to test existing widgets wrapped new Scaffold(...)? I have found MediaQuery.of but it accepts Build
I am learning about TDD and practicing my test writing. I want to write a test for my login through Firebase. here is the test file: import 'package:firebase/fi
I used to be able to run all my Flutter unit tests from the Android Studio GUI by right clicking on the tests directory and clicking on "Run 'tests in my_app'".
To start, I did review this but to no avail. How to access Flutter environment variables from tests? import 'package:flutter/widgets.dart'; import 'package:flut