Category "dart"

How to pass from Flutter Web to html file (HTMLElement, iframe) arguments for the JS script?

I want to render a pay widget in the Flutter web app and I need a unique token there, so I calling Iframe from Dart to render it. However I didn't find how to s

Your bucket has not been set up properly for Firebase Storage

Please can someone help me with this error from firebaseStorage? Caused by: java.io.IOException: { "error": { "code": 400, "message": "Your bucket has n

How to make transparent sliverappbar in flutter?

I'm trying to make e-commerce app in flutter. I wanted to make Appbar transparent and have animation, so I use Sliverappbar but I can't make it transparent with

Flutter: animate item removal in ListView

I am building a ListView from a Stream. I need to animate deletions and insertions to that list, but have no idea how. I have seen this sample by Flutter but i

creating an empty json object from dart object in flutter

I have a class class User{ String name; Address address; } and class Address{ String houseId; String location; } how can I make an empty address json ob

Flutter app does not start in debug mode

I had simple Flutter app with debug config. After I change the gradle config and other stuff to build apk in release mode.I did all the config based on the docu

How to pass a function through the constructor of a class?

I would like to pass a function through the constructor of a class. but when i call it, nothing happening. debug write: func : {_Closure} import 'package:flutt

Error "[core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()" is thrown [duplicate]

I have a main file which returns home page and on the home page I am trying to call a new file (test.dart). Now the problem is this test.dart

flutter - error in accessing camera

I am creating an app in which I need to use camera of mobile device. I have created below class class CameraWidget extends StatefulWidget { @override _Came

Error '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Iterable<dynamic>'

Displaying A-List fetched from a 3rd a Third Party API with the search Function the error only shows when I ran the App, It Says _InternalLinkedHashMap<Strin

A problem was found with the configuration of task ':app:checkDebugManifest' (type 'CheckManifest') in flutter

I was building my app, when this error occured while building - FAILURE: Build failed with an exception. * What went wrong: A problem was found with the config

Failed to register a ServiceWorker (Flutter)

I'm working on a Flutter Web App and today I got these errors: A bad HTTP response code (404) was received when fetching the script. Uncaught (in promi

Command not recognized in Flutter/Dart

I am trying to clean and rebuild Gradle, as I am stuck on: Running Gradle task 'assembleDebug'... Yet when trying to use the command ./gradlew clean, it gives t

Flutter: CocoaPods could not find compatible versions for pod "FBSDKCoreKit"

I am build a flutter app and in that I developing logging with Facebook in a flutter. i used flutter_facebook_login: ^3.0.0 and flutter_facebook_auth: ^3.3.2 p

Flutter Location service no response

I am delevoping an app with gMaps and in my application I am getting location permission from user and after that I am requesting the user to turn his/her gps o

How to create Confetti animation in Flutter

I want to a make Confetti effect animation in my flutter app? How to Explore Confetti Animation In Flutter and how to add the confetti animation and show a colo

Flutter: There should be exactly one item with [DropdownButton]'s value

I am trying to create a dropdown button in Flutter. I am getting a List from my database then I pass the list to my dropdownButton everything works the data is

Learning flutter from c# models and http call using http.dart for first time

I am learning dart coming from a c# back ground and flutter. I am following this tutorial https://www.djamware.com/post/5f308ef7185c336b811b362a/flutter-tutoria

Flutter : audio_service with Video player

how can i use audio_service package with video player(ex : chewie or pod_player ) to play video in background and Android lock screen and notification, iOS cont

Flutter / Dart Convert Int to Enum

Is there a simple way to convert an integer value to enum? I want to retrieve an integer value from shared preference and convert it to an enum type. My enum i