API data not showing in flutter dropdown
i am trying to display data list API to dropdown but the result is not there, which i have to fix. I'm trying to change or update user data and have some data in the form of a list including…
i am trying to display data list API to dropdown but the result is not there, which i have to fix. I'm trying to change or update user data and have some data in the form of a list including…
I'm following this speed code tutorial and I'm facing some problems during somewhere on 5:08. import 'package:flutter/material.dart'; import 'dart:math'; class WaveColorPainter extends CustomPainter { Paint? _paint; List<Color>? colors; @override void paint(Canvas canvas, Size size) { colors = List.from(Colors.accents); colors!.removeRange(6, 13);…
I am trying to create a vertical lineargradient i.e from top-center to bottom-center like this image. I have come up with this code which creates diagonal gradient from top-left to bottom-right. How can I get a vertical linear-gradient instead? Container(…
After carefully trying other answer, nothing seems to work. Notification are working fine, when I click on them and the app has been initialised. When the app is closed or terminated it is impossible for me to redirect the user…
A class Object passing from First Screen to the second Screen While on the second screen when the object changed its value, it's also changing the value on first screen. Code of First Screen. (widget.templateModel is an object class that…
In the line of docs, an error appears. Why does this error appear? Is there an error in writing the code? I found this same question among the questions, but without an answer, I'm still a beginner and I hope…
How do I convert a XFile to a URI in order to display the image? I am selecting the image via gallery of the device(mobile phone). I do get this error when the carousel moves around Invalid argument(s): No host…
Exception has occurred. PlatformException (PlatformException(channel-error, Unable to establish connection on channel., null, null)) enter image description here
I'm using the following code for login. But the problem is after successfully login it's not able to navigate to home page. If I navigate inside on pressed button then it automatically navigate to home and it will not check…