Category "flutter"

In Dart, is it possible to pass an argument in a singleton?

class Peoples { late int id; late String name; static final Peoples _inst = Peoples._internal(); Peoples._internal(); factory Peoples() { retur

How to catch platformException in flutter/dart?

I am getting Exception has occurred. PlatformException (PlatformException(sign_in_canceled, com.google.android.gms.common.api.ApiException: 12501: , null)) w

CocoaPods could not find compatible versions for pod "Firebase/CoreOnly"

I've update my flutter package to the last versions and now IOS doesn't work anymore. When I try to update the pods it's shows this error: [!] CocoaPods c

Obx ListView not updating after value changes

I am having a RxList called todoData. On the basis of this list, a ListView.builder builds a list and in each list there is a button. When this button is clicke

How to get the snapshot.error in Flutter 2?

I updated my Flutter app to Flutter 2, and now when I try to get the snapshot.error in my StreamBuider I get this These are validators with Streams. class Logi

Dart InternetAddress.lookup failed for the local network, but works for google.com

Dart unable to connect the server running on the local network. In below code I am trying to find weather or not my host is reachable before making the API requ

can not debug with flutter null-safety flutter-dependencies

i can run my app only using Flutter run --no-sound-null-safety my mobile attached my my lab top samsung M21 using android studio flutter version Flutter 2.2.1 d

Flutter - FloatingActionButton in the center

Is it possible to make the FloatingActionButton in the centre instead of the right side? import 'package:flutter/material.dart'; import 'number.dart'; import '

I have problem with gradle in flutter. Could not open settings generic class cache for settings file

Here is the error: FAILURE: Build failed with an exception. What went wrong: Could not open settings generic class cache for settings file 'E:\proj\android\sett

Flutter - Wrap text on overflow, like insert ellipsis or fade

I'm trying to create a line in which center text has a maximum size, and if the text content is too large, it fits in size. I insert the TextOverflow.ellipsis

Removing OverLayEntry on Back button in Flutter

I am using OverlayEntry and I want entry to remove on Back Press. OverlayEntry overlayEntry; overlayEntry = OverlayEntry(builder: (c) { return FullSc

Flutter Navigate to a Page as Root page

Currently, I have Navigation Stack PageA => PageB => PageC I want to pus Push PageD as the root page So the final result would be =>PageD How can I ach

android studio cannot resolve symbol 'GradleException'

Creating new Android Studio project get the following exception in Gradle build file: Cannot resolve symbol 'GradleException' Gradle still builds successfu

how to open a certain page using local notification in Flutter? (Not FCM)

no, I am not asking about Firebase Cloud Messaging notification here, but purely using local notification package from here flutter local notification I want if

How to check if the user is logged in, if so show other screen?

My first screen is a login screen and it needs to check if the user is logged in to open the home screen directly but I get an error using this check. I'm doin

Flutter detect PointerEvents over Widget

I have a sample code which detects a hovering stylus over a widget. The code is from this Stackoverflow Quesion. In short. It binds using GestureBinding.instanc

How to highlight searched words in Flutter

I want to bold the words that I typed like this. I tried using RichText, but it is fixed only in one place, and search text can be center, start, end. Is there

Execution failed for task ':audioplayers:compileDebugKotlin'

I'm facing this nasty error when trying to compile my Flutter App into an Android simulator. Here is the error log (is too long to paste it entirely): aunching

Aligning text using RichText in flutter

Text UI I want to create UI similar like this in flutter using RichText widget. Can you please help me with the code? I am not understanding how to design such

How to prevent user from recording screen in Flutter?

I'd like to know if there is any way to detect if the screen is getting recorded while my Flutter App is active. My objective is to pause the video if any app/s