Category "flutter"

MissingPluginException for Linux desktop app

Just added desktop support to my flutter app, it runs fine in the android emulator, but wont render any element in neither browser nor desktop, just a simple bl

Trailing widget consumes entire tile width. Please use a sized widget, or consider replacing ListTile with a custom widget

I am making a basic shopping app .My idea is to make a list tile of my products so that I could edit or delete the products . So when i navigated to that page

Send notifications using REST api

I want to use the http package to send notifications to topics through the flutter app using the docs as in https://firebase.google.com/docs/cloud-messaging/sen

How to create a hyperlink in Flutter widget?

I would like to create a hyperlink to display in my Flutter app. The hyper link should be embedded in a Text or similar text views like: The last book bought

How should I access a Riverpod provider from a different file?

I'm used to provider's Provider.of() call to get a provider from elsewhere in the widget tree, but every Riverpod resource I've found relies on having access to

Flutter: json_serializable ignore nullable fields instead of throwing an error

Suppose there are two models User and City @JsonSerializable() class User { int id; String name; City? city; List<Map<String, City>>

How to save the document id in document field while creating it in Flutter Firebase

I am trying to save the document id in the a new field but if i use 'postId': _firebase.collection('Posts').doc().id, this will generate a new id any suggestio

Programmatically scrolling to the end of a ListView

I have a scrollable ListView where the number of items can change dynamically. Whenever a new item is added to the end of the list, I would like to programmatic

RangeError (index): Invalid value: Valid value range is empty: 0

I am trying to fetch a list from API that is two methods fetchImages and fetchCategories. the first time it is showing a red screen error and then after 2 secon

Flutter: Error says - Could not find a generator for route RouteSettings while trying to navigate to another screen

Although questions with such error messages exist in this site, none solves my problem. I have a button and on clicking the button, I just need to go to a diffe

RangeError (index): Invalid value: Valid value range is empty: 0

I am trying to fetch a list from API that is two methods fetchImages and fetchCategories. the first time it is showing a red screen error and then after 2 secon

Flutter, Freezed: Set Class as default value

I have a User class which contains a Purchase class. I want to make it non-nullable, but not required. So this means that I would need to set a default value. I

Customize dropdownbutton - going up

It's maybe a stupid question, but I don't know how to make a dropdownbutton that go up and no down when it is focused. Maybe I need to create my own ? Or is it

How to build an app locker application using flutter

I want to create an app which allows to put lock on the other apps that are to be protected in the device. This app lock will start automatically before opening

Get full address details based on current location's latitude and longitude in Flutter

I have used the location plugin in the flutter, I can get the latitude and longitude only. How to get the full address details. Codes on below. Future<Map&l

Invalid characters while converting API response to PDF

I used the following syntax for my GET request var response = await http.get(Uri.parse(url), headers: { "Content-Type": "application/pdf", 'Authorizatio

Can I use Transporter to upload Flutter iOS apps to App Store console?

I got into mobile development through Flutter, so all my contact with native platforms and techs comes from that. So far I've been distributing my Flutter apps

Flutter doctor error -cmdline tools component missing and Android sdkmanager tool not found. Windows

I'm trying to setup an android emulator but I don't have intel. I've been through so many similar pages but none have given me an answer on why I can't get my f

Error in using table_calendar: ^3.0.5 dependency in flutter

I get this error in my code where I used a table_calendar dependency. Here is my code where I implemented the calendar. import 'package:fitr/reusable_widgets/bo

Flutter Linux build error when executing flutter run -d linux

Flutter doctor did not show any issues. What could be wrong? executing: flutter run -d linux Shows the following: CMake Error at /snap/flutter/81/usr/share/cmak