Category "dart"

Stop flutter build runner from rebuilding my plugin

I have the following file structure in my flutter project lib - router -- router.gr plugins - myplugin //is a dart package -- input_folder --- swagger.json -- l

Is it bad practice to store/translate static error strings in a form field model?

I'm building a Flutter app where I have a sign-up form that will throw an error if the user inputs an invalid email. I have the following model for the email fo

Send a jwt token in my SSE event source (subscribe request)

How can I send a jwt token (or a header (Authorization to be specific)) in my SSE subscription request (the event source)? void subscribe (String jwtToken) asyn

how to disable user to go back after successful login in flutter

I have this login function and it's working like charm , but the problem that the user can press the back button and return to the login screen and I want to di

TensorFlowLite tensor with type UINT8 and a Java object of type [[F (which is compatible with the TensorFlowLite type FLOAT32)

I was creating a mobile app that can recognize images using flutter and I got this runtime error when testing the app. Caused by: java.lang.IllegalArgumentExcep

How can I add whole object as parameter in flutter post request?

"UserDtls":{ "DisplayName": "Picker", "UserName": "Picker", "Password": "", "EncryptPassword": "", "UserId": 5, "Rol

Flutter 3.0.0 bugs

after upgrading to the latest version 3.0.0 then some various bugs appear in some of my projects that run well before qr_code_scanner:compileRelaseKotlin Dupl

Flutter: Shared Storage (Storage Access Framework API) Permission for files inside hidden sub-directory not working

How to achieve to listing all files (e.g. Media) inside hidden subdirectory i.e. folder name start with '.' e.g. "(.media)" after using SAF in Flutter/Dart? I h

Vertical and Horizontal scrolling at the same time in Flutter

I'm building a flutter app, it requires data to be displayed in a table format, I've done it with the help of DataTable widget, but when it was rendered, the co

how to parsing web socket response (JSON) in flutter

I have a task, I want to take the data through the web socket, and display them on the screen of the application. But I did not even find a normal example to do

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

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

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

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.

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