Flutter – Handle dropdown menu value
Good time I have two dropdowns on one page The first is a list of cars and the second is the model of the cars. Now, when I select Mercedes in the first drop-down menu, for example, I want the…
Good time I have two dropdowns on one page The first is a list of cars and the second is the model of the cars. Now, when I select Mercedes in the first drop-down menu, for example, I want the…
I am learning to work with JSON. This is my first time doing this. I get the JSON from an API call with this code: if (response.statusCode == 200) { var json = response.body; // return itemsFromJson(json); getDataFromApiFromJson(json); } Here…
i am trying to achieve this using flutter, there can be a lot of images but i cant find the right component to get it done... please who has an idea which component achieves this or how it can be…
How to enable the above toolkit in VS Code? I have already installed Flutter and Dart extensions, but this isn't appearing. I dont even know it's proper name so Google isn't being of any help. I recently switched from Android…
I am new to flutter/Dart and I want to get data from an API. I don't know how to get the JSON schema from the API. I don't find it in the documentation. This is the API I want to…
I have a Map of data.... I want to sort this map in desc order of message time. i.e. the message recieved in the newer date to come first. Please help me out. Map<String,Map<String,String>> = { "33": { "id": "25766f01628f3d34b93a36a2301dffc9",…
I am trying to send a register request to the API with Dio, but when I use this code, the location field has a problem: class RegisterRemoteDataSourceImpl extends RegisterRemoteDataSource { final Dio dio; final String username, email, password, confirmPassword; final…
I got file response from API I want to generate it as PDF and open using open_filex This is what I have tried @override Future<Either<Failure, dynamic>> getInvoicePDF(GetInvoiceParams param) async { return await Factory().exceptionsGuard(() async { var res = await RemoteDataSourceResponseGuard.execute<dynamic>(…
I am using Flutter in VS code and it is not showing me any device to run my flutter on. No device In my cmd it is showing me devices to run it on like windows but in vs code…
I want to give bottom right corner radius to Container. For that I have set right and bottom border of the Container. However, it is not allowing me to set the bottom right corder radius. The following is the code.…