For questions about Flutter UI software development kit that are specific to version 2 of the framework. Use the more generic [flutter] tag on all Flutter questions, and only add this one if your question is specific to version 2.
I have the following custom dropdown widget that I have created.
class CustomDropdown extends StatefulWidget {
final Color? textColor;
final Color? backgroundColor;
final Color? iconColor;
final bool? boldText;
final Object? initialValue;
…
Inside my class I have the following class variables,
Image? _pickedFrontImage;
Image? _pickedBackImage;
Then I have the below class method,
void _setPickedImage(String path, Image? image) => setState( <------ Pay attention to the image…
I am having this issue where I the application isn't building because it says
fatal error: 'Flutter/Flutter.h'
file not found
#import
I've been working on this issue the whole day, but haven't gotten anywhere. It's a simple…
Hello I want my firsbase push notification’s app icon should look like big icon at left and title at right side.
Here I am attaching an example.
I am able to set the icon but its coming as very small and totally at the top.
Please help me out.
Tried every thing, when trying to access the root directory of the app it throws this exceptions.
Is there any way to get the root of device on flutter2 with null safety ?
i have some images in my assets folder. I just want to check whether the user entered name is matching with image or not. if it is matching then I want to use that image in circle avatar or else use the first letter of the name in circle avatar.
My…
I am trying to fetch live gold prices from a website using this code.
import 'package:http/http.dart' as http;
import 'package:html/dom.dart' as dom;
import 'package:html/parser.dart' as parser;
getWebData() async {
final response = await…
I'm getting this error when I tried to build Object using Freezzed Package in Flutter
If I tried to use some other datatypes instead of DateTime I'm not getting any errors
How to solve this? Thank you
pubspec.yaml
build_runner: ^2.0.4
freezed:…
I'm a little lost here, I'm trying to get the sum of a specific field, my code here:
Future _sumCarta() async {
await _firebaseServices.usersRef
.doc(currentUser)
.collection('Cart')
.get()
.then((querySnapshot)…
Before switching to Flutter 2, I was using an old version of SharedPreferences without problems, and now I have the latest version.I was able to store values of type int in a separate class that I use from all aspects of the application, but after…
I am getting the error
The return Type > isn’t a 'void', as required by the closure's context
regarding the line return polygonList; in this button widget:
Widget _markerButton(BuildContext context) {
return IconButton(
icon:…
I've just upgraded to cloud firestore: ^2.1.0 and I have an error on snapshots.data?.documents or snapshots.data?.docs with message The getter 'documents' isn't defined for the type 'Object'. in the above code :
@override
Widget build(BuildContext…
I just updated my application and I have the following:
- flutter version: 2.3.0-1.0.pre
- flutter channel: dev
- number of packages: 50
- migration errors & warnings: 3k+
Is there any other solution instead of fixing the migration errors manually?
I have installed flutter 2 on a windows laptop. When I run flutter doctor it works fine but I understand that we have to accept licenses by flutter doctor --android-licenses. When I run this command I found below error
flutter doctor…