Category "flutter"

Flutter run takes too much time after editing MainActivity.kt

I was running some flutter project from github but the runnig taking too much time and showing some cryptic things in console like, lib\main.dart:1 √ Bui

Change text colour of focused item in DropdownMenuButton in Flutter

The focused item in the dropdown menu is highlighted in the accent/secondary colour from the theme (example to show the highlight). However, if the highlight co

Because project requires SDK version >=2.14.0 <3.0.0, version solving failed even though Dart SDK version is 2.14.0-350.0.dev

I want to make use of typedefs for variables in Dart thus I am trying to update minimum dart version to 2.14.0. When I change environment to environment: sdk:

What Is the best way for using Flutter ffmeg?

I am using Flutter ffmpeg kit but did not getting exact answer https://pub.dev/packages/ffmpeg_kit_flutter

Flutter: How to Fix a 'Multiple Widgets Used the Same GlobalKey' Error

Problem: When I encountered this problem, I was looking to get the middle position of words contained inside a pressed widget. I am getting the error, Multiple

Flutter: How to Fix a 'Multiple Widgets Used the Same GlobalKey' Error

Problem: When I encountered this problem, I was looking to get the middle position of words contained inside a pressed widget. I am getting the error, Multiple

How to convert Timestamp to DateTime from firebase with flutter

I have Timestamp item in firebase. I get the item from dart code timestamp type. It shows like 'Timestamp(seconds=1590903768, nanoseconds=26999000)' as it is.

When i click on PopupMenuButton, PopupMenuItems are not Showing

I am making a flutter app where I have a PopupMenuButton. When i click on PopupMenuButton, PopupMenuItems are not Showing. Here is the code: class _Configur

No permissions found in manifest for: []22 - Flutter

I'm trying to get storage permission from the user. Below is the sample (copy-paste) code. But I'm getting error when I'm trying to request the permission. D/pe

Flutter: How to fit the web view size to screen?

I am new in flutter, tried to use web view in flutter, but the the size of the web view is bigger than the screen. I want to fit the web page size to the phon

When i click on PopupMenuButton, PopupMenuItems are not Showing

I am making a flutter app where I have a PopupMenuButton. When i click on PopupMenuButton, PopupMenuItems are not Showing. Here is the code: class _Configur

How to apply different animations to an old page during the transition?

I have a panel as a tabbar at the bottom with custom animation and with page names. I have 5 pages that can be switched with the next animation: the new page sh

Flutter DropDownButton using FutureBuilder value is not updating after selecting values from DropdownItems

I have been trying to code this app using Flutter and I want to make a Dropdown that displays the values received from a JSON response via provider. The respons

How to pass generic provider to child?

I want to create a universal alert that I will use several times in my app. class SelectIconAlertDialogWidget extends StatelessWidget { const SelectIconAlertD

Flutter Nested Navigation Back Button handling on Android

Background I have a Navigator widget on my InitialPage and I am pushing two routes ontop of it (NestedFirstRoute and NestedSecondRoute). When I press the physic

Flutter In-App Purchase Implement For Google Pay

I am trying to update my existing application on google play store from Android Java with Flutter Dart. On my existing application, I have an in-app purchase th

How to add an image to Flutter?

I have already done everything on this site of my app, but I wanted to add an image after I did my code to put a gradient in the background. Now when I try to a

Problem with running IOS simulator for my flutter app

I'm trying to run my flutter app on the IOS simulator and its not working. So tried on the most basic flutter app (create my_app and then tried to run it) and n

Overwrite Paste Event for TextFormField

I have a TextFormField. Usually you can use the selection toolbar to copy/paste/select all and so on using long tap/double tap. I want to overwrite the Paste E

Flutter Error when trying to debug Windows App

I am trying to start Windows app for first time with default Flutter Project but it's showing this error espacialy. Unable to start engine without AOT data. Fai