Category "dart"

Error "This widget has been unmounted, so the State no longer has a context (and should be considered defunct)" upon SDK and packages upgrade

I got the error "This widget has been unmounted, so the State no longer has a context (and should be considered defunct. Consider canceling any active work duri

Encrypt in php and decrypt in Dart(flutter)

Does anyone have an idea about encrypting response from my php api and decrypting data in local using dart. I'm using flutter for my mobile application. Thank

How can I add shadow to the widget in flutter?

How can I add shadow to the widget like in the picture below? This is my current widget code.

Flutter BottomNavigationBar not working with more than three items

I´ve a problem with the BottomNavigationBar in Flutter (0.6). As soon as I add more then three BottomNavigationBarItems as children, the buttons in the ba

Warning: Operand of null-aware operation '??' has type 'Color' which excludes null

I have upgrade flutter version to 2.0.4, when I run the project(this project was runing on old flutter version)it throws warning because of package I used. this

How to dynamically create onTap gestures as a user inputs text?

I want to create a custom input field which matches some known strings and then changes the style and adds an onTap gesture when those text values are pressed (

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