Category "flutter"

How to test getters in a state class using bloc_test?

Say I have a state class class MyState extends Equatable { final bool isSaving; final String errorMsg; const MyState({ this.isSaving = false, thi

The argument type 'RxString' can't be assigned to the parameter type 'String'

I try to use the GetX framework in flutter for my project. but it shows the Error regarding RxString. whenever I try to use the Obx method to call the controlle

How to bypass field does not exist within the DocumentSnapshotPlatform

I'm receiving this error because some of my contents don't have ['ses'] in firestore. Half of the contents have this and the other half do not have it. How can

The key [GlobalObjectKey int#a1467] was used by multiple widgets

I have project that have very long sheet code on each page without Bloc or other code separation. I have this code, that must open dialog with location peeker i

flutter dynamic links open web page when app is not installed

So, I want to redirect user to my web app created in flutter with specific item id when user don't have mobile application installed Here is my code for create

How to add animation to navigation in flutter using Get package?

I want to change the default animation of page transition to fade transition when I go to a new route using get package, Currently I am using this command to na

Make child elements active

I have a code that can be used to filter cars by country of manufacture. The code is structured like this: I put the name of the country with a checkbox in the

Android Studio shortcut keys for windows, linux and mac

Android Studio shortcut key for Windows, Linux and Mac. For example in windows: Run -> Shift + F10 Debug -> Shift + F9 Any others similar to this? What ar

Flutter: Understanding human language

this might be a bit of a unusual question. I have implemented voice input in my application and I need some kind of mechanism that will understand the semantics

Wrap provider in main

Any help I have an error on the wrapping provider on the main. the error is on the : create: (context) => LocaleProvider(), this is my code : import 'dart

How to retrieve the value of a listener passed to a Stream?

Stream<int> get ints async* { yield 100; } Future<int> foo(int i) async { print(i); return 0; } void main() { final subscription = int

Call AppLocalizations’ method through regex

I’m trying to build an ItemList in flutter that would call the AppLocalizations.of(context) with the methods value01, value02, value03. Example of arbFile

I want to be able to have multiple widgets in a page, it isn't working though. I want to have containers like the image below. It only allows me text?

This is the code below, please much appreciated if you can at least try. thank you | I am trying to create an app where I can have multiple widgets in one page.

Error: A value of type 'Widget' can't be assigned to a variable of type 'InheritedWidget'

I am having a problem with my project, there are no errors in my code but when I try to run main.dart it fails to build. The errors it throws are the following:

how to use single child scroll view properly

I used the Single child scroll view on my homepage which is I'm Implementing. but seems like it's not working. my page is not scrolling. Is there any other way

Flutter Amplify - Cannot run appsync code gen for existing api

I have an existing AppSync API that I need to use in a new flutter app. After initializing amplify in my project, i run the command "amplify add codegen --apiI

How to convert json array to model class in flutter dart/

{ "feed": { "entry": [ { "im:name": { "label": "The Rise" }, "im:ima

filter data using list flutter firestore

I am creating a bookstore where customers who have their favorite books have a favBook list and the website displays the name and images of the book of all thei

Flutter null safety plugin_platform_interface

I have this error, Error: Cannot run with sound null safety, because the following dependencies don't support null safety: - package:plugin_platform_interface

Allowing null and asserting it's not - flutter framework

I came across this file https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/widget_span.dart and on line 98, I find this strange tha