Category "dart"

Store profile image in local storage and display it

I am building a profile page for my app in which I have a profile image section. I want to store the image that the user selects in the local storage and load i

How to trigger phone open with, when done downloading with url flutter

Hi everyone so I'm trying to create an app using flutter that will able the user to download file from URL (might be PDF, image, etc.) I want the app to be able

How to remove the space under the elevated button at the bottom of the screen?

import 'package:flutter/material.dart'; class AddPlaceScreen extends StatefulWidget { static const routeName = '/add-place'; @override _AddPlaceScreenSt

Json decode Instance of Item

I'm trying to save a list of object into a shared preference for easy storage. I'm getting the error [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exce

Flutter WebView doesn't work on canvas for web

I am building a cross platform application for web, android and mobile using WebView feature but I want to use the canvas implementation but the WebView doesn't

How to add a marker in flutter to the Yandex MapKit?

How to add a marker in flutter (as far as I understand, this is placemark, but after studying the documentation. I haven't found how to add it. marker on the ma

How to add a marker in flutter to the Yandex MapKit?

How to add a marker in flutter (as far as I understand, this is placemark, but after studying the documentation. I haven't found how to add it. marker on the ma

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