Category "dart"

Create List View with Stream Builder

Want to create a list view from live data from server using stream, so create fake stream of data and then save its snapshot in a list to test result, when use

Flutter Socket io Error on WebSocketException: Connection to was not upgraded to websocket

I use this package and it work properly on test websites but in app I got this Error WebSocketException: Connection to 'https://socket.excopro.com:0/socket.io/?

How to Update a flutter app on already published native android using java app in play console

I have published a native app with package name e.g (com.hamzamuazzam.foo) in Google Playstore and I want to update my app that is now made in flutter , also ha

Flutter: how to make a TextField with HintText but no Underline?

This is what I'm trying to make: In the Flutter docs for Text Fields (https://flutter.io/text-input/) it says you can remove the underline by passing null to

Dart - How to sort Map's keys

I have question in sorting Map's key in Dart. Map<String, Object> map = new Map(); How can I sort the keys in map? or Sort the Iterable map.keys.

dart - How to listen for Text-Change in Quill text Editor (Flutter)

I am only familiar with HTML/CSS/JS, and basics of dart/flutter Developer Level: Beginner Project type & language: I am developing a notes app for myself, u

Error database_closed when using flutter's sqflite

I try to use sqflite to save some data like my class Movie but when i try to insert or query on the database, see this message: [ERROR:flutter/lib/ui/ui_dart_st

Widget test fails with No MediaQuery widget found

My question is about flutter widget test, what is proper way to test existing widgets wrapped new Scaffold(...)? I have found MediaQuery.of but it accepts Build

flutter_tags giving error when clicking Enter

I am using flutter_tags package in my project. when i add text in the TagsTextField and press Enter I get below error and that part becomes red. Expected a val

Error: Because project requires SDK version >=2.16.2 <3.0.0, version solving failed

I just tried to reactivate an old project, but it doesn't work. I get this massage in my "output": Because random_number requires SDK version >=2.16.2 <3.

TabBarView within Scrollable Page

I am having real trouble getting a layout to work within Flutter. The layout I am trying to create: A ListView that contains a: A Container. A TabBar. A TabBarV

How can i upload multiple images to firebase in flutter and get all their download urls

Here is my upload function. My desired output is a list of all urls, but it returns an empty list. I have tried different suggested solutions, but all of them h

flutter stuck on running xcode build

Flutter stuck on running xcode build; the verbose shows that it get stuck at here, [ +14 ms] Running Xcode build... [ +20 ms] executing: [/Users/navodsant

Flutter Google Maps: How can you change maptype after runtime?

I am trying to change from normal to satellite when pressing a button as shown below, but i get an error that setMapType does not exist. mapController.setMapTyp

What other programming languages besides Dart compile to native machine code across many platforms

I am learning Dart and was wondering if there are many more programming languages that compile to native machine code across many platforms like IOS, Android, W

How to remove or change flutter_native_splash?

I use flutter_native_splash: ^2.1.2+1. I wanted to set white background color, but I set a different color. I called flutter pub run flutter_native_splash:creat

How to convert an object containing DateTime fields to JSON in Dart?

I try to convert an object to JSON. var obj = { "dt": new DateTime.now() }; var s = stringify(obj); The runtime throws an exception: "Calling toJson meth

How to point to localhost:8000 with the Dart http package in Flutter?

I'm following the Flutter Networking/HTTP tutorial to do a GET request to a server running on my localhost:8000. Visiting my localhost via my browser works fine

Flutter how to cast the model object to another model to save it to HIVE

I have an API response and parsed it using ProductsModel and I am trying to save it to my local storage using Hive and I have different model called LocalProduc

Flutter: Dismissable with Card and Margin

I'm building a simple listView in Flutter where the "cells" are simple Cards with a set margin. When dismissing these cards, the "margin" covers the dismissible