Category "dart"

Flutter run returns: A problem occurred evaluating project ':app'." ">ASCII"

I'm trying to follow the "Add firebase to flutter" tutorial (https://firebase.google.com/docs/flutter/setup) . I've done this with many prior version. Now on F

How to split the elements in a list according to range of numbers in flutter

Am working on a project and I need to break down a list to a new list eg I need to break down this kind of list [{ name: rice, quantity: 87, price: 8700}, {name

The linked framework 'Pods_Runner.framework' is missing one or more architectures required by this target: x86_64

I am getting the below error while building my flutter app in IOS simulator via M1 Macbook pro. I am using VS code for editing. I have no issues with the buildi

error with PhotoView : Looking up a deactivated widget's ancestor is unsafe

I have read few stackoverflow posts about "Looking up a deactivated widget's ancestor is unsafe" error but couldn't find an answer which work. I've tried to set

Flutter - How to download files in WebView?

I am using flutter_webview_plugin: ^0.3.8 but I have the same problem with webview_flutter: ^0.3.13. In webview, I want to make use of a website which triggers

how use regexp in flutter?

I want this format.see at photo. I use this code RegExp(r'^(?=.*[0-9])(?=\\S+$).{8,40}$').hasMatch(text). This code is ok for java but not for dart.I don't

Insert element at the beginning of the list in dart

I am just creating a simple ToDo App in Flutter. I am managing all the todo tasks on the list. I want to add any new todo tasks at the beginning of the list. I

Flutter Horizontal List View Dot Indicator

I have multiple images each with their own redirect link. Currently this works fine at displaying using a list view build to display the images inside a gesture

How to use JWT with WebSocketChannel in Flutter

I have an existing Websocket Channel which needs authenticate user by his JWT in order to send/receive messages using this socket connection. The problem is - I

How to include multiple fonts into single text

I have an Arabic text in a pdf file. When I copy the text into Text Widget it becomes weird characters. When I checked the pdf file properties I found that it u

flutter in android studio says cannot find declaration to go to......i am using the latest version of it v1.7.8+hotfix.4

i can't find defination of any of the flutter function or class if i want to see the defination or implementation of FAB(floating action button) it says cannot

Flutter Firebase foreground push notification not showing but background is working

It's been few days since I've been trying to solve this problem. I have implemented firebase messaging for push notification, as a result, I am able to receive

Add mandatory(*) for labelText in Input Decoration in Flutter

I want to add asteric sign in InputDecoration labelText and change color(like red) of it so that user understand easily this field is required. TextField(

Is it possible to make Vpn app using flutter and dart

I tried using this package to make VPN connection app but it dose not support the connection type like (L2TP or PPTP) https://pub.dev/packages/flutter_vpn

Sending an SMTP email in Dart

I looked through the API documentation and language guide, but I did not see anything about sending emails in Dart. I also checked this google groups post, but

ERROR: Runner.xcworkspace does not exist. error implementing google maps

I'm trying to implement GoogleMaps into my flutter project, it works fine for the android version, but with the iOS version I'm facing some problems. The error

ERROR: Runner.xcworkspace does not exist. error implementing google maps

I'm trying to implement GoogleMaps into my flutter project, it works fine for the android version, but with the iOS version I'm facing some problems. The error

How to make a widget take as much width as the screen in Flutter?

In my flutter project, I haved used a Row where I aligned two text horizontally, the first Text size is fixed but the I want the second one to have as much widt

How to draw a horizontal line in flutter row widgets?

In my flutter project, I have initialized a Row. Inside that, I created some Texts in a column and after that, I want to add a line but it is not showing anythi

Unhandled Exception: type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast

import 'dart:convert'; import 'package:flutter/foundation.dart'; import 'package:http/http.dart' as http; import './cart.dart'; class OrderItem { final Stri