Category "flutter"

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

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

Flutter testing error: NotInitializedError which involves environment variables (.env)

To start, I did review this but to no avail. How to access Flutter environment variables from tests? import 'package:flutter/widgets.dart'; import 'package:flut

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

Firebase push notifications stops working after some time for all users in my Flutter app. Is this correct flutter fcm implementation?

I'm using aws sns to send notifications to users via firebase cloud messaging. App is built with flutter. Notifications work alright(background,foreground,kille

FirebaseMessagingService Illegal Access

I am using flutter for building application. Recently, I have added firebase analytics to it but now I am experiencing one fatal issue. I am not sure what is ca

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(

How to add integer as default/initial value for TextFormField in flutter?

This will work TextEditingController _controller = new TextEditingController(text:"this works"); but this does not TextEditingController _controller = new Text

Flutter: wasm streaming compile failed: TypeError: Could not download wasm module

I'm building a Flutter web app. Everything was working fine until randomly I did a hot restart and then I began getting this error. wasm streaming compile fail

ADB exited with exit code 1

I'm getting the following error when running my flutter project on Android Emulator. It works fine on iOS Simulator and the project is also fine on my other Mac