Issue I have a unit test where my result and my expected result have value NaN, but when I do expect(result, expected); this returns Expected: <NaN> Actual: <NaN> I understand this happens for this reason Why is NaN not equal
Continue readingCategory: Dart
Error: Too many positional arguments: 1 allowed, but 2 found
Issue I’m working on a flutter app that is getting a JSON from an API, then I’m parsing the JSON and building a List Tile, when I try to run the code, I’m getting this error. lib/screens/screen4.dart:112:23: Error: Too many
Continue readinghow can i get length of list in widget
Issue I can’t get the length of the list in the widget although I wrote everything correct this is my cubit class AppCubit extends Cubit<NewsStates> { AppCubit() : super(NewsInit()); static AppCubit get(context) => BlocProvider.of(context); MianTeams? mianTeams; void getTimes() { emit(NewsLoding());
Continue readingHow do I switch between two different widgets on the same location in flutter?
Issue I have a card widget which has some info and a button. On button press, I want to animate the card to change to a different card at the same location. The animation will be added later. As per
Continue readingHow do I know if there are more documents left to get from a firestore collection?
Issue I’m using flutter and firebase. I use pagination, max 5 documents per page. How do I know if there are more documents left to get from a firestore collection. I want to use this information to enable/disable a next
Continue readingNot able to remove focus from input field
Issue I have four textfields, a title field, a details field, a date field, and a time field. Both the date and time fields are wrapped within a gesture detector, and onTap calls a pickDateAndTime method. The problem is that
Continue readingHow to find memory leaks in Flutter?
Issue I need to find memory leaks in Flutter. How to find them? and how to create memory leaks for the test? Solution Am implemented Memory leack testing in android studio ide. Step – 1 : Connect your device with
Continue readingHow to find memory leaks in Flutter?
Issue I need to find memory leaks in Flutter. How to find them? and how to create memory leaks for the test? Solution Am implemented Memory leack testing in android studio ide. Step – 1 : Connect your device with
Continue readingHow to correctly size Flutter SVG image?
Issue Using the flutter_svg package. This does not seem to be sizing correctly, no matter what I set the width and height to, it remains unchanged. I have posted images below for intended result 1 and the actual result 2.
Continue readingHow to move slider scroll in the AlertDialog in Flutter?
Issue The slider works fine outside the AlertDialog, but when I insert the slider into the content inside the AlertDialog, the display works fine, but it doesn’t scroll. How do I solve this? This is Image that AlertDialog with SfSlider
Continue reading