Category "dart"

Flutter CustomScrollView how to keep the viewport when adding item at the start of the list?

Problems: For example, there is a list of 100 messages. The current viewport of CustomCrollView is showing message 50 -> 60. When adding a new item to the st

how to delete an object from list in flutter

i want to delete an object from list of inventory in which i just have description and url of the inventory and i want to delete object of inventory by descript

Flutter - BottomNavigationBar - SizedBox() Issue

I'm new to flutter development. I've been trying to add SizedBox() but I'm getting the following Error at compile time The argument type 'SizedBox' can't be ass

use socket.io client in dart in different places with a single instance

I use Bloc and repositories, I'm going to use the socket in different places in the project. each api package has its own events but shares the same socket. I w

Flutter - Attempting to display a list of tweets fetched from JSON onto ListView

I am attempting to fetch a list of tweets using Flutter's HTTP library and Twitter's API endpoint, and then display the list of tweets onto a ListView widget us

Error while building Bottom Navigation Bar Flutter

I'm new to Flutter and I'm trying to learn by imitating an app so please do not bash me too hard. First of all, I have this main_page.dart that looks like this.

Did you intend to call the constructor and forget the 'new' operator when rendering a widget

// config dart import 'package:flutter/material.dart'; import 'package:offline_solution/pages/pages.dart'; Map<int, Map<String, dynamic>> bottomBar

Get activate notification in flutter with FCM

I have a flutter social network app with firebase I want to send notification to user when they get follow,like,comment or any activity I know firebase cloud m

Any way to play audio file for windows desktop application in flutter?

I'm new to flutter and making a desktop application with flutter. Now I need to load and play audio files but found that the audio player packages don't support

Error Parsing JSON response from Server in Flutter

I have a JSON response that I would like to parse to be able to use it's data. I have created the model accordingly using https://quicktype.io/ which is given b

flutter pop back to navigated route

i am looking for proper solution to pop back to page where user was navigated. I already found this answer but i do believe there should be more proper way to d

How to validate url using regex but without http and https

I want to validate url i am using this regex !(Uri.tryParse(val)?.hasAbsolutePath ?? false) i entered google.com but it return false when we do not add http or

How get a statistical summary from List of Maps in Dart?

Using the following List of Maps, I would like to create a kind of statistical summary in order to be able to create a plot from it. List<dynamic> dat

HEREmaps SDK Flutter - Routing error: 6, exception: These credentials do not authorize access, error code: 403

Im using Here SDK (Explore) for Flutter, the account got billinginformations and right credentials. I can show a map and draw polylines on it. But when i try to

Flutter BluetoothPort connection device is lost

I tried to print pdf from Flutter app in Zebra ZQ620 by bluetooth. But I get a problem, it seems that I lost Bluetooth port connection. I use Flutter Bluetooth_

How to refresh FutureProvider without showing loading indicator again in Flutter with Riverpod?

Currently I am refreshing a FutureProvider that is responsible for fetching data from Firebase and displaying it in a simple ListView with liquid_pull_to_refres

Failing script as process substitution not working in Dart

Is there any way to make the script: diff <(echo 'hello') <(echo 'hello-2') work, as currently it fails with error in Dart when run using Process.run or P

Not saving the flutter switch value to sqflite database

I am a completely a beginner to sqlite and flutter. I was trying to create a local database to my flutter to do app. So I watched some youtube videos and starte

Do apps built with Flutter suffer from dead code?

Flutter may technically allow you to code once and build an app for multiple platforms, but realistically you do not want to have the same experience on mobile

Type mismatch: inferred type is String? but String was expected error in projects after flutter upgrade

I updated my Flutter version to 3.0.0 and then any project I run it gives me this error e: C:\src\.pub-cache\hosted\pub.dartlang.org\agora_rtc_engine-4.2.0\andr