Flutter and Distance Matrix API parsing json

I am currently building a flutter app where I want to calculate the distance between some objects and am using the Google Distance Matrix API to do so. I am having tro...

Writing to a Local json file dart flutter

I am creating an app that allows user to save small data. I have a json file in my assets folder and I would like to create an app that can write more json data to it....

Flutter - Generic json serializer with Dart

I'm new in Flutter and trying to implement something similar to Swift generic decodable, like below: <pre><code>struct ParentJson&lt;T&gt;: Decodable where T: Dec...

Flutter - Pass variable to another screen for URL GET JSON

I'm new to Flutter. On my HOME screen I have a ListView with fetched Json. I want to pass JSON variable ex:id on Tap to the next screen/class 'contantPage' to show ano...

_CastError (type _CompactIterabledynamic is not a subtype of type Listdynamic in type cast)

<strong>I want to deserialize JSON files using this model but this problem occurred. If I am wrong deserialize the file. What is the proper technique to deserialize th...

How can i add multiple expand tile with checkbox list tile using Json in flutter

this json has two data first only name and second is inside there also name which is service name. ex 'Travel and Stay' and 'Religious' is main name which has to be di...

FormatException (FormatException: Unexpected character (at character 1)

I am trying to get data from a json from a link and decode it to display data in a calendar, so it worked fine until this error appears in this line <blockquote> <...

How to serialize Uint8List to json with json_annotation in Dart?

I made a simple class that has an <code>Uint8List</code> member: <pre><code>import package:json_annotation/json_annotation.dart; part openvpn.g.d...

Flutter api usage

I am very new to this business and cannot use api. No matter how much training content I look at, I run into errors when I try to try it myself. I cannot get out of th...

I cant show data from a json file Flutter

How can I display this data in my application? in the debug console you see the data that I want to show in the form of a list, but no matter how hard I try, I don't g...

Get null fields fromJson in Hive

I try to restore Hive database and get null fields in my model Account, but I see fill fields in map with debug mode. <img src="https://i.ibb.co/vPHGZ7r/2.png"...

Unhandled Exception: type _InternalLinkedHashMap&lt;String, dynamic&gt; is not a subtype of type HashMap&lt;String, dynamic&gt; Dart

I am having a response below <pre><code>[ { name: Kamchatka, about: Lorem ipsum dolor sit amet consec...

Flutter - Problem showing and accessing api datas

right now im trying to use this api <a href="https://ffxivcollect.com/api/spells/" rel="nofollow noreferrer">https://ffxivcollect.com/api/spells/</a> Im trying...

Parsing JSON in flutter cast&lt;RK, RV&gt;() =&gt; Map&lt;RK, RV&gt;, No such method error

<pre><code>Future&lt;List&lt;CurrentUser&gt;&gt; getCurrUserSettings() async { int id = await getCurrentUser(); print(id); final _storage = FlutterSecureStorage(); _token...

Writing data to an existing file in the host server using http in flutter

I want to make a json file on the server, and then update this json file using flutter http method in my app. I will get user ID, and if the user ID is already present...