Visual Studio Code : Pub failed to rename directory because access was denied

I am stuck in an issue since a week , whenever i try to run flutter pub get it gives me error as : C:\Users\DELL\Desktop\AgroApp\farmingo>flutter pub ge...

How to launch a flutter page from native android notification click

I have Intent Service in Native Android which I started from flutter using Channels. Intent service is showing a local notification. If user click on the notification...

I am getting null value of user_id

I am trying to build an e-commerce app using flutter and woocommece api.But when i try to press addtocart button this is what i get : <pre><code>products:List (1 i...

Flutter google sign in id token invalid value

I am developing google sign in feature in flutter and i'm able to extract id token from auth header but when i try to hit google api token info endpoint with the id to...

a same way to style all widgets in flutter

Style on text field and button are applied differently. For example: On text field style is applied like <pre><code>style: TextStyle(color: icolor) <...

Execution failed for task :app:packageDebug when trying to build starter flutter app to android

I'm trying to build my first flutter project, and just finished the installation. When attempting to build the default starter app to an android emulator, the followin...

Navigate in cached Flutter Engine

I have a question regarding <strong>FlutterEngine</strong> I have a single cached flutter engine that I wanna reuse on many screens in my android app, so I'd have to s...

Flutter/Android change background color of Gesture Navigation icon

I have an icon set using a transparent image, on the home screen the background is white but when in the Gesture Navigation view the icon above the app screen is blue....

When to persist data in Flutter (onPause equivalent)

I'm writing a Flutter app geared for mobile devices. I'm used to the Android paradigm where you persist all changes made by the user in <code>onPause</code>, which is...

How to resolve Lost Connection to Device (Flutter Image Picker)

I'm building an app that requires me to use the camera of the device. I have followed all the procedures to set it up via the <a href="https://pub.dev/packages/image_p...

How to navigate one page to another without changing state in Flutter using flutter_bloc

I am facing one issue in which when I am going from one page to another page using <strong>flitter BLoC</strong>, my first page rebuild before reaching to second. I am...

onChanged property of TextField vanishes on clicking done button after entering text in keyboard in Flutter

<pre><code>class AddTaskScreen extends StatelessWidget { const AddTaskScreen({Key? key}) : super(key: key); @override Widget build(BuildContext context) { Stri...

While Running in the app im getting this error. Can anyone help and tell me what this error is?

<pre><code>Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapp...

Unable to compile Flutter application with Flutter 1.22.3

My application was compiling successfully until the Flutter version upgrade. I get the following error: <pre><code>Runner.app/Info.plist does not exist. The Flutte...

How to show displayName of contact as text?

I want to pick a random number from contact list and show it as Text. Below is what I came up with but when I insert <code>showNext()</code> somewhere on <code>main.da...