Category "flutter"

Set height of DropdownButtonFormField list

In Flutter, DropdownButtonFormField's modal list keeps growing to fill some height limit that seems to be ~90% of the screen (or possibly, and more likely, the

Flutter DropdownButton - expand outside of parent element

I need the flutter dropdownbutton to be expanded much more out of its parent so all dropdown menu items would fit into it. Now I'm using Row > Expanded >

Flutter : No ScaffoldMessenger widget found

I am trying to create a snackbar on the click of a button in flutter, but getting exception that No ScaffoldMessenger widget found. The same code seems to work

How to print a message in the console between the times form 9.00 AM to 16.30 PM in Flutter?

I want to print a message in the console every hour between the times from 9.00 AM to 16.30 PM using flutter.

FlutterError: Unable to load asset

This is the folder structure of my app .idea .vscode android build fonts Oxygen-Bold.tff Oxygen-Light.tff Oxygen-Regular.tff images pizza0.png pizza1.png i

Flutter Webview two way communication with Javascript

I have an html file that I am loading in Flutter webview using flutter_webview_plugin. I am using evalJavascript to call function in my javascript code, meaning

module 'audio_session' not found

I try to build an existing flutter project on a new Mac with M1 chip. I face the following error in regards that the audio_session module is missing. Launching

How to Widget test Share package using widget test

I have an issue with trying to test Share package. My code looks like this: IconButton( key: Key('share-button'), icon: Icon(Platform.isAndroid ? Icons.shar

Flutter: Add custom color to existing theme

I am using Flutters built-in themes like this: return MaterialApp( theme: ThemeData.light().copyWith( primaryColor: const Color(0xFF5E975

Multiple commands produce flutter GoogleUtilities

I am trying to build for app store. using command flutter build ipa and getting below error. Although the build works (when I run from Android studio)on debug m

Flutter for linux build fail

A linux build of any flutter application with linux enabled, results in the following error: flutter run -d linux Launching lib/main.dart on Linux in debug mode

NDK is not installed

When building a flutter app, I get an error stating FAILURE: Build failed with an exception.

How to dispose of and recreate some state

Please, consider the below code. A textController is created during initState. If a button is pressed, another textController is created, inside of setState:

Converting DateTime to time ago in Dart/Flutter

The question is how to format a Dart DateTime as a string stating the time elapsed similar to the way you see times displayed on Stack Overflow. Is there any b

Flutter DataTable - Tap on row

I am using Flutter DataTables to display list of items in cart. Now I want to edit the quantity of any selected row. Is there a way to get the information of th

Unexpected getting cloud_firestore/permission-denied in production sometimes

My Firestore rule: match /app/info { allow read; } My code: FirebaseFirestore.instance .collection('app') .doc('info') .snapshots()

How to find IP address using multicast_dns in flutter/dart?

I am writing a flutter application. To make life easier for end users I decided to find services running on a Raspberry Pi. Avahi is running and working. I can

Flutter- GestureDetector not working with containers in stack

I have two containers in a stack and both containers have GestureDetector.The OnTap for the first container is working fine but it's not working with another co

how i can scan ID Card(NIC) in flutter and also get data from it?

I am building an app in flutter and in that app one step is to scan an id card (NIC) and get their name, DOB, expiry date, etc, so I am confusing that how I can

"error: cannot find symbol" when building for Android in flutter

I keep getting this error when trying to build for android in my flutter app. This all happened when i added firebase messaging version 7.0.3. Even after removi