Questions tagged [flutter2.0]

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.


Resource


Source Code and Building


Community


Related tags

89 questions
0
votes
1 answer

My custom dropdown widget throws an error when trying to set an initial value for it using a model instance

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; …
0
votes
1 answer

The value I want is passed to the function by value rather than reference in Flutter. How to avoid this?

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…
CodeR_Ax20
  • 91
  • 1
  • 8
0
votes
1 answer

Flutter.h not found issue Flutter 2

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…
Programmer12
  • 89
  • 1
  • 8
0
votes
0 answers

Flutter set notification icon like big app icon

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.
0
votes
1 answer

Alternative of package PathProviderEx in flutter

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 ?
Wali Khan
  • 586
  • 1
  • 5
  • 13
0
votes
1 answer

How to check if image assets exist then use it as circle avatar or write first letter of name in circle avatar

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…
0
votes
1 answer

Fetching data from tag in flutter

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…
Malay Agrawal
  • 27
  • 1
  • 12
0
votes
2 answers

Can't find Android Manifest in flutter project

Where do I find the android manifest file in Flutter 2.2, it's not under its typical location Not here
0
votes
1 answer

The constructor being called isn't a const constructor. Try removing 'const' from the constructor invocation. Flutter How to solve?

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:…
Agnel Selvan
  • 109
  • 2
  • 8
0
votes
1 answer

how to sum values of a field inside a firestore collection related to another collection in flutter 2.0

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)…
0
votes
2 answers

Unhandled Exception: Invalid argument(s) (value): Must not be null Flutter 2

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…
M Al
  • 357
  • 7
  • 15
0
votes
1 answer

Flutter 2.0: The return Type > isn’t a 'void', as required by the closure's context

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:…
kokserek
  • 530
  • 8
  • 21
0
votes
1 answer

Cannot get documents or docs with cloud firestore : ^2.1.0 flutter

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…
0
votes
0 answers

Is there any other way of resolving null safety migration errors instead of manually?

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?
0
votes
1 answer

Flutter doctor --android-licenses not working

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…
Harry
  • 154
  • 4
  • 15