Category "dart"

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:

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

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 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 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

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

Detect if device auto orientation mode turned on or off in Flutter

I'm working on this app that uses a video player. In here I use 2 main options to change the orientation of the player, which are the fullscreen button, and the

Generating aes cbc key from password and iv in dart

anyone havean idea how can i generate a key for aes encryption in dart from iv and password? like this code written in C#: var spec = new Rfc2898DeriveBytes(En

Flutter DraggableScrollableSheet extent control

I am trying to implement a DraggableScrollableSheet that expands to maxChildSize when I perform a drag up action and collapses to minChildSize when I perform a

Possible to insert values into stream asynchronously in dart?

I have a function which downloads the RSS Feed and parses it. After that, I iterate through each team and do some processing on it. For now, this processing is

How to position widget inside Stack relative to center?

Stack( children: [ Positioned( left: ??? + 20, child: Text('This text is 20 pixel left to the center of the stack'), ), ], ),

Flutter _ How to fix display error of this keyboard

After I clicked on the line to edit the text, my keyboard appeared too high, making the interface look like it was corrupted.

Flutter convert package or dart:convert

I am following a Flutter tutorial. JSON is converted using the dart convert library: import 'dart:convert'; However, I see that a flutter package is available

Flutter assets_audio_player

i have a problem with this package (https://pub.dev/packages/assets_audio_player), only and only on iOS after having lowered the volume of a song it does not ra

Undefined Name | Error in TextEditingController (''Flutter/Dart)

I have Error in "controller" it says undefined name 'profileNameTextEditingController' language: Flutter/dart My Activity : Activity line 1-29Error

can I use the HTML widget to parse a google maps embed?

I am trying to put a google map in my application using flutter so I tried to use the HTML widget to parse an iframe that holds the embed link from google maps