Category "dart"

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

How to not dispose of previous widget when navigating to a new widget in Flutter?

What I am currently doing Navigator.push(context, RouteAnimationFadeIn(NewWidget(someValue), true)); RouteAnimationFadeIn: class RouteAnimationFade

Generic callback with generic class as parameter in Dart

I wrote a custom switch class in Flutter to implement generic parameters, I used the flutter_switch package. When I toggle the switch I faced the following erro

Xcode build is missing expected TARGET_BUILD_DIR build setting

I face error while launching on device on iPhone 12 Pro Max. This is console log Launching lib/main.dart on iPhone 12 Pro Max in `debug mode` Running Xcode buil

How to highlight correct word on searchDelegate?

I highlighted the word, but not the correct word. In my BuilderSuggection, I added like this code, title: RichText( text: TextSpan(