How can i get an image next to a Text?

import 'package:flutter/material.dart'; class PersonalData extends StatelessWidget { final String Name; final String Alter; final String urlImage; PersonalData(this.Name, this.Alter,...

Flutter: How to set and lock screen orientation on-demand

On one of my flutter pages, I need the screen to set to landscape mode and lock it so it can't rotate into portrait mode, but only on the one page. So need a way to enable this function...

What is the alternative to RecyclerView in Flutter?

What is the alternative to Recycle view in flutter I have tried using this code but how to do Animination with listview widget in flutter Is this valid? ListView( children: <Widget>[ ListTile( ...

Flutter: Add box shadow to a transparent Container

I'm trying to make a widget that renders one of the circles shown in this image. It is a transparent circle with a box-shadow. The circle should show whichever color or background image that is...

How do I check if the Flutter application is in the foreground or not?

I don't want to show notification when the app is in foreground. How can I check live state of my app?

How to conditionally add widgets to a list?

In flutter, widgets such as Row/ListView/Stack don't handle null children. So if we want to conditionally add widgets as children I usually do the following: Row( children: <Widget>[ foo ==...

how to POP with animation in flutter

i am doing Navigator.pop operation and i want to fade out transition to the page. I have tried Fluro but not Intrested to implement it. This What i doing :- Widget build(BuildContext context)...

How to use If statement in Flutter widget

I'm new in flutter and practicing simple app. But now, I can insert one line conditional statement but I want to add If statement. So I can add more statement. How do I do that? Here is my code....

Is there a way to display an image if the requested image is not in my assets?

the title might be a bit confusing but i'll try to explain it better with an example. I am using the widget Image.asset( 'assets/images/${object.name}.jpg', ), but i want to...

Special Symbol or Single Quote or apostrophe in JSON String in flutter

JSON response String containing an apostrophe This is the key and value coming from the server. "name": "men’s basketball wear with free product", When I'm converting this JSON into pojo...

How to build signed apk from Android Studio for Flutter

Is there a way to build an apk for flutter in Android Studio? I have seen this guideline: https://flutter.dev/docs/deployment/android But here flutter console is used to build apk.

Dart/Flutter: build_value vs json_serializable

Wondering what is the different between the dart libraries build_value vs json_serializable ? both appears to be doing the same thing.

Flutter GoogleMap is blank after resuming from background

I'm experiencing the following issue: My Flutter app uses a GoogleMap. The map loads just fine initially. However, if I put the app into the background and resume a while later, the map stays...

Flutter in_app_purchase '_enablePendingPurchases': enablePendingPurchases() must be called before calling startConnection

I am using the simple code below bool available = await InAppPurchaseConnection.instance.isAvailable(); however it is returning the error E/flutter (14525):...

Duplicate R.class after renaming package name for my Android Studio Flutter app

Tried renaming my Android Studio flutter app package, and it is tunring out as a mess. How can I solve this issue? Build is failing with the error message: Execution failed for task...

Is there a way to validate international phone number in flutter

I am using flutter country_code_picker 1.4.0 package to get the dial code, Is there any way to validate international phone number by length. country_code_picker package

How do i implement iOS style delete in flutter

I am looking to implement iOS type delete in flutter. Please see image below. Is there a widget which provides this functionality? Or do i need to implement it myself? Image here

Flutter: Unhandled Exception: Bad state: field does not exist within the DocumentSnapshotPlatform

I am new to flutter and i am building a social media App through tutorial which i am now customizing. Now I tried to add more input fields to a users profile page then i started getting the...

I get a `cannot open camera "0" without camera permission` Error when I try to open a camera to scan a QR code

I get a cannot open camera "0" without camera permission Error when I try to open a camera to scan a QR code. I have a QR code scanner function that does not open the camera. The scanner screen...

LateInitializationError: Field '[email protected]' has not been initialized

Getting this when trying to initialize data. The following LateError was thrown building UserProfile(dirty, state: _UserProfileState#752a9): LateInitializationError: Field '[email protected]'...

flutter error: This widget has been unmounted, so the State no longer has a context (and should be considered defunct)

when I clicking on login button when my mobile number is wrong then open one error dialog box after that when I clicked okey on dialog box then i got this error. I got this message This widget has...

type '_JsonQuerySnapshot' is not a subtype of type 'Map<String, dynamic>' in type cast"

I have issues to display data from Firebase. Here is the code I used in my FutureBuilder. This is the error that I got "The following _CastError was thrown building...

How can i detect text language with flutter

I need a package that detects and returns the text language. Do you have a flutter package recommendation for this? If you know of any other method besides the packages, I'd be happy to hear it.

Flutter (2.5) - A splash screen was provided to Flutter, but this is deprecated

I am new to flutter and recently tried to develop a test app for learning sake with latest version Flutter 2.5. By looking at some tutorial online, I have added flutter_native_splash: ^1.2.3...

Flutter Web: Cannot scroll with mouse down (drag) (Flutter 2.5+)

[Update] I can confirm this issue happened in flutter above 2.5. Using 2.2.3 is fine. The question becomes why this feature been removed in 2.5 ? And how to enable it in flutter 2.5? [Origin...

LateInitializationError: Field has not been initialized in Flutter

I'm considerably new to Flutter and I'm to build a Messenger Chap App on Flutter, and I face the issue of "LateInitilization: Field 'searchSnapShot' has not been initialized. Following is the...

VSCode debug console does not stay scrolled to the bottom

I am using vscode to develop using the Flutter framework. The flutter extension writes logs to the debug console. I scroll the debug console to the bottom, so it stays auto scrolling / tailing the...

Flutter The Scrollbar's ScrollController has no ScrollPosition attached

I get this error when using the AppBar: The Scrollbar's ScrollController has no ScrollPosition attached. This is my CustomScrollBar: class CustomScrollBar extends StatelessWidget { final...

CMake error while running flutter desktop application

When I am trying to launch flutter desktop application, this error occurred to me: "CMake Error at CMakeLists.txt:2 (project): Generator Visual Studio 16 2019 could not find any instance of...

Facebook App Events not working in Flutter

I have a flutter application where my task is to log user events using facebook app events. I have added the following package to my pubspec.yaml: facebook_app_events: ^0.14.7 Added the...