Need help cutting out specific values from a JSON String in Flutter/Dart. Here's an example of the JSON String: [{"insert":"Test12 "},{"insert":"Test1","attributes":{"b":true}},{"insert&q ...
In order to avoid Gson errors when parsing objects, I only need the name and id parameters for Dropdown. How can I handle unwanted parameters from the API response in a Flutter object? import 'package:meta/meta.dart'; import 'dart:convert'; c ...
When I added the suffixIcon, a slight extra space between the hint text and underline became noticeable. However, when the suffixIcon was not included, the layout looked perfect. In the examples of "New Password" and "Confirm Password," the issue with the ...
class AddTaskScreen extends StatelessWidget { const AddTaskScreen({Key? key}) : super(key: key); @override Widget build(BuildContext context) { String newTask = ''; return Container( color: const Color.fromARGB(255, 117, 117, 117), ...
I am currently working on an app design that includes 3 flat buttons placed in a row. The first button is selected by default and displays a listView widget. The other two buttons should be greyed out until clicked, at which point they will show another ...
I'm in the process of building a multiplayer TicTacToe game using Flutter and Node.js with Socket.io integration. Here is the code: Flutter late io.Socket socket; final String url = 'http://localhost:5000'; @override void initState() { super ...
How can I pass the location obtained in my Flutter app to a WebView for further processing within the opened site? var userLocation = Provider.of<UserLocation>(context); Here is my WebView setup: WebView( initialUrl: widget.url, javasc ...
I am looking to create a unique identifier for my chat application. (Chat between my Flutter app and Angular web) Below is the code snippet written in Dart... String peerId = widget.peerid; //string ID value String currentUserId = widget.currentId ...
Seeking assistance for an app I am developing to fetch data from a URL post in JSON format. The data includes information about a person, such as their client details and address. However, when attempting to use this address information to send it to anoth ...
https://i.stack.imgur.com/MJUOH.png https://i.stack.imgur.com/fDhJe.png A request sent via Http (fetch-XHR) enters a state of cancellation, but it occasionally functions properly. It appears that the initial attempt after loading the page is usually uns ...
From a Json API call, I am receiving a group of latitude and longitude coordinates formatted as a long string in the "lineStrings" block. Typically, I would expect individual latitudes and longitudes that I could iterate through, but instead, I have this ...
Flutter / Dart Discussion I have an array with an "Accessories" list that includes a brand name ("samsung"). I need to add the brand name to all subarrays. In the subarray of the "Brand" key, you can see the second code space which contains the parent ke ...
While attempting to populate my different models with values, I encountered an issue when using the toJson() function of the parent model. This function is supposed to call other models with their objects and create a JSON format that can be sent to Fireba ...
I have a Flutter app with a form, and I want the initial page of the form to display an overview of the steps similar to a stepper: https://i.stack.imgur.com/cCdB9.png Since my app needs to work on both mobile and web platforms, it must be responsive to d ...
I am having trouble figuring out the correct syntax to display DietName from Data{}, PartnerName from PartnerData[], and DayName from DayList[]. These data are inside another ArrayList, and I need help displaying them. { "Status": "1", "Message": " ...
I'm facing a problem that I couldn't find the solution to through Google or here, so here's my issue. I'm trying to retrieve JSON data from my own JSON test server at: The JSON data is nested and I'm attempting to GET the "r ...
I'm currently working on a project using Flutter and experiencing issues with the keyboard opening when a user clicks on the DropDownMenu. I am looking for a solution to prevent the keyboard from popping up when the user interacts with the dropdown list. ...
My goal is to retrieve and parse JSON data from a REST API in node.js using express and MongoDB, and then present it as userdata. However, no matter what I attempt, I am unable to successfully parse the data. It either throws an exception like "Unhandled E ...
Having trouble with the JSON_ANNOTATION feature when dealing with a json that contains nested arrays. Uncertain about how to convert the paths in the array into a single Paths object. Maybe something like this, but it doesn't seem to handle multiple level ...
I am currently facing a challenge in sending notifications from a Node.js API to a Flutter application. Initially, my goal is to enable my application to receive notifications from Firebase. However, I encountered an issue when initializing the app: Pla ...
https://i.stack.imgur.com/YeZa6.png Hello everyone, we are facing an issue with Flutter web. Here's what's happening: When we use flutter run -d chrome --web-renderer canvaskit and flutter run -d chrome --web-renderer html, nothing changes. If we open th ...
1 - What is the recommended order for learning (Mongo db,Node.js,Express)? 2 - Is this platform compatible with both web and mobile devices? 3 - Can you explain the functionalities of the programs? 4 - I'm planning to integrate it into my Flutter mobile ...
I encountered an issue with my Flutter app where I was unable to create a shape like the one shown in this image for my Slider: https://i.stack.imgur.com/wlXG2.png Here is what I currently have: final paint = Paint() ..color = Colors.black ..s ...
I am currently working on developing a platform where, upon logging in, a token is created and stored in the cookie. While I have successfully implemented a route that stores the cookie using Node.js (verified in Postman), I encounter issues when attemptin ...
Can the lateral animation feature from material3 documentation be implemented in Flutter, such as with a PageView? I am particularly intrigued by the way the image adjusts to the size of the page when swiping horizontally. Check out material3's lateral an ...
Below is the code I have created for a ListView.builder to display 4 elevated buttons in a container with axis.horizontal. When clicking on the container, it should navigate to another page. Additionally, I have set up a list to retrieve data from each c ...
Recently, I've been diving into creating a quotes app that utilizes a rest API to fetch data and display random quotes at the center of the screen with just a tap. However, I seem to be encountering some hurdles in getting everything to function as in ...
I have created three classes to handle JSON parsing from an API call. Here are the classes: class CurrentWeatherInfo { double temperature; double feelsLike; double minTemperature; double maxTemperature; int pressure; int humidity; CurrentWea ...
In my flutter app, I have a method that performs a get request by passing parameters into the URL. Future<Map<String, dynamic>> getData( {String path, String token, Map<String, String> params}) async { try { Uri uri = Uri ...
Need help with creating a reusable Card widget in my Dart app. Keep encountering a named parameter is not defined error. Any ideas on what could be causing this issue? Here's what I've attempted so far: Reinstalling the flutter SDK. No issues fo ...
I attempted to implement the following code: FloatingActionButton( onPressed: () {}, backgroundColor: Colors.transparent, elevation: 0, child: Container( decoration: const BoxDecoration( shape: BoxShape ...
Struggling with saving a list to sharedpreferences by converting it to JsonString. Facing the issue of 'encodable object failed: Instance of 'CustonContact''. Looking for assistance. class CustomContact extends Contact{ Contact contact; b ...
I am trying to extract the "title" from this json response Although I can access other data like kind or etag over items, the items array is shown as null. How can I retrieve the title from it? var data = await http.get("https://www.googleapis.com/youtub ...
Currently, I am working on saving and retrieving a list of custom objects to and from shared preferences. Below is the code for my save function: save(String key, value) async { final prefs = await SharedPreferences.getInstance(); prefs.setString(key, j ...
I currently have a NavigationBar on my app that consists of 3 tabs. I am looking for a way to switch the active tab or destination when a button is pressed. The Navigation Bar setup in the Home class: body:IndexedStack( index: currentPageIndex, ...
Within my Flutter application, I am receiving a JSON response and able to parse it with ease. However, there is a key named "data" in the JSON response that provides me with dynamic values as follows: Sometimes it appears like this (1): "da ...
{ "status": "error", "msg": "Please ensure all fields are filled out properly", "error": { "device_token": [ "The device token field is ...
I have encountered an issue with my 2 flutter web apps. One of them is functioning flawlessly when I request the URL, but the other one only works when I include the port xxxxx:4000/nexus-vote. However, when I remove the port, I receive a status code of 20 ...
I am trying to design a user interface similar to the example below, where the initial character of each Text widget within a ListView's children is linked by a vertical line. If any of the items in that ListView have sub-children, the vertical lines ...
Examining my json data: { "data": { "id": 1, "title": "Test-1", "description": "Description of test-1.", "category_id": "1", "product_sizes": [ ...
I uploaded a PHP file on my college server, and it works fine when accessed directly from the server. The JSON data can be retrieved by running the PHP file at this link . However, when trying to access the same data in a Flutter app, I encountered an erro ...
Hey there! I recently set up a Flutter TabBar with tabs and was wondering if there is a way to incorporate a button-like ripple effect when the user clicks on the tab buttons. Any suggestions or tips would be greatly appreciated! TabBar( isScro ...
I've decided to separate my Supabase database interactions from my client Flutter app and create a dedicated NodeJS express app for that purpose. Currently, I have included the credentials of the logged-in user in the header of my API requests as show ...
Hey there, I am looking to enhance the filtering of a JSON list in Flutter by adding an additional condition. Here is a snippet of my JSON structure: { "product": "butox 50 ml", "agencies": [ { ...
I have been developing an app using Flutter and I am currently working on implementing a Dropdown Button that will display values received from a JSON response via an API built with Django. Here is the JSON response: [{"name": "FC1", "username": "admin"} ...
There seems to be an issue with the code. I believe it is because I stored an object in a list, so how can I solve this? The error message says '_InternalLinkedHashMap
I received an API response structured like this: [ {"name":"lakshay","id":"1217","type":"Staff","temperature":56.6,"date":"12-06-2020"}, {"name":"lakshay","id":"1217","type":"Staff","temperature":56.6,"date":"12-06-2020"}, ..... ] I want to ...
I have developed an app that utilizes an API to retrieve data. However, I am currently encountering an error when trying to retrieve the data from the API. Here is the code for my User (Character) model class: class Character { late int id; late String ...
I'm currently developing a test application using Dart, which is designed to display and insert data into a database hosted on 000webhost.com. In my app, I'm trying to display JSON data in a table where all the columns are contained within a sin ...
When the user scans the QR code, they will be taken to a secret internal page that can only be accessed through this specific link. I attempted to use various libraries such as , but it did not achieve the desired outcome. ...
Below is the code snippet I have: class _ReadingBookPage extends State<ReadingBookPage> { double _sizeFont = 14; ... @override Widget build(BuildContext context) { return Scaffold( body: ... ...
For the backend of my flutter app, I utilized socket.io and node.js. I created an index.json file and implemented a function on a page to establish a connection between my app and the backend. However, I am facing issues with it not working as expected. Be ...
My goal is to achieve the following: imagine I have an authenticated user with an API token. When this user clicks a button, I want to open a web view and authenticate them using session-based authentication. https://i.stack.imgur.com/CsZ57.png This is wh ...
I am currently working on a project that involves using Django REST for the backend with Flutter dropdown widget to display a list of Country states. However, I am facing challenges in getting the list of states to appear in the dropdown menu. Can anyone p ...
I am currently developing a Node.js application to make changes to Flutter code by inserting lines of code into it. My goal is to view these updates in real-time. Is there a way to implement hot reload so that every time I finish writing a line in the file ...
In my efforts to display text in Flutter, I am facing the challenge of ensuring that the text is encoded in UTF-8 and can also show emojis. Unfortunately, I have not been successful in achieving both simultaneously. When attempting to decode an input with ...
Can anyone help me with mapping this JSON in Dart? I received this JSON as the response.data from a get request made using the Dio library in Flutter. [ { "getPlayersFilterResult": { "Players": [{p1},{p2},..] } }, ...
Looking to add chat functionality to my app as a feature request. The backend is built in nodejs, so I'm exploring different ways to achieve this. Tried using socket.io but ran into compatibility issues between socket.io and flutter. My preference is not ...
I'm encountering a persistent error that I can't seem to resolve: NoSuchMethodError (NoSuchMethodError: The method 'map' was called on null. Receiver: null Tried calling: map(Closure: (dynamic) => Name1Name2)) Despite my best effo ...
I'm having trouble understanding this code. builder: (context, snapshot) { if (snapshot.data != null && widget.stored!.b) { return new GridView.count( children: List.generate(snapshot.data!.length, (index) { return ...
I recently dove into Flutter and decided to start using FlutKit packages. I've encountered a challenge with an array LIST while working on this project. FlutKit utilizes a list with static Json data to cache initial data, including Products, Categories, an ...
In my JSON response, I receive a set of questions. My goal is to split these questions into words and compare them with another JSON response. When there's a match, I want to highlight the matching words and make them clickable to display a pop-up showing ...
Following my server request, I received the following JSON data: [ { "id": 56012, "name": "The name", "description": "<p>description</p>\n", "regula ...
I am in the process of creating an e-commerce application. I am using a ListView.builder to show the data but I'm struggling with fetching products based on the selected category. Below is the model for the list of categories: class Category { final ...
I'm using a `FilterChip` along with a `CircleAvatar` for the avatar, but when it's selected, there's an unwanted rectangle that I can't seem to locate any information about. How can I get rid of it? Here is the code snippet: child: FilterChip( av ...
I am facing an issue with filtering JSON data that contains objects with name, latitude, and longitude. I only want to display the names of objects that have both latitude and longitude values. Example object in JSON with lat and lng: dynamicDataUrl: ...
I'm currently working on customizing a Flutter ElevatedButton within the context of an app that adheres to a specific color scheme created by myself. Is there a way to apply styles to this button using a particular hexadecimal color value (for example, u ...
I'm interested in incorporating a drawer similar to the one shown in this image into my Flutter app: View Image Currently, I am using NavigationRail and have read that it is possible to add a menu button to open a navigation drawer. Can anyone provid ...
Whenever I attempt to launch my Flutter App on a Pixel 5 Device, I encounter this error message: /Users/username/.gradle/caches/transforms-3/0ace7b4637c402760ef38d3581a65ee0/transformed/appcompat-1.4.2/res/values/values.xml:37:4: Invalid <color> for ...
After implementing a future builder to fetch data from the backend on the first tab of the bottom navigation bar, I noticed that the data disappears when I switch to the second tab. Why does this occur and how can it be resolved? https://i.stack.imgur.com ...
I am completely new to working with flutter and I have been wondering if there is a way to directly load a JSON string into a listview widget without the need to create a specific model for it. The JSON data consists of an array called "fields", and each e ...
In the Services-> math_logic.dart file, I have a page dedicated to mathematical calculations where I did not use StateFul Widget. However, I encountered an error indicating that 'Future is not a subtype of String'. It seems that there was also an issue ...
While developing a Flutter Web application, I am exploring a Web-UI-Testing framework that is Selenium-based. Unfortunately, I am struggling to locate an HTML element that represents a specific flutter widget by its id or name attribute. The widget key doe ...
Hello, I've encountered an issue that is puzzling me. After installing Flutter and adding its path to my .zshrc file as shown below: export PATH={$PATH}:/Users/matteo/Documents/flutter/bin I started experiencing difficulties with Docker and/or Npm ( ...