Category "flutter"

How to change height of DropdownButton in flutter

How can I change the height of a DropdownButton in flutter. I have tried to use Padding and SizedBox but none is realy working. SizedBox just increases the cont

How to have single instance of a bloc across other blocs

How can I avoid creating another instance of some bloc class? I have two blocs: LoginBloc and AuthBloc . and LoginBloc accepts an instance of AuthBLoc and here

Error database_closed when using flutter's sqflite

I try to use sqflite to save some data like my class Movie but when i try to insert or query on the database, see this message: [ERROR:flutter/lib/ui/ui_dart_st

pub get failed (65 ' ) exit code 65

While trying to download packages to the flutter project im getting like:- [project] flutter pub get Running "flutter pub get" in project... Error on line 25,

Firebase phone auth not initiating OTP only in release mode but works on Debug mode even after added sha1 for release mode

Steps how I implemented. As advised, I implemented all the way. It was quite good in debug mode. Unfortunately its not working in release mode even I added my d

Is there a way to query if a WebView is scrollable?

I am using a PreloadPageView to display WebViews whose content vary in length. I would like to be able to inform the user when there is more content below on We

Widget test fails with No MediaQuery widget found

My question is about flutter widget test, what is proper way to test existing widgets wrapped new Scaffold(...)? I have found MediaQuery.of but it accepts Build

Flutter: Execution failed for task ':location:compileDebugKotlin'

Execution failed for task ':location:compileDebugKotlin'. build:gradle(Module:app) ext.kotlin_version = '1.6.10' repositories { maven {

Why does Flutter Doctor not find an option named "android --licences"

I am trying to complete the install of Flutter. Within the Flutter help, it has an option called "Flutter doctors android --licences" However, when you run it,

flutter_tags giving error when clicking Enter

I am using flutter_tags package in my project. when i add text in the TagsTextField and press Enter I get below error and that part becomes red. Expected a val

Widgets not rendered when building Flutter apk

So I've been working on flutter for quite some time but recently, after i changed my laptop, I encountered a strange problem. When i run the app in debug mode o

Flutter iOS distribution fails with No architectures in the binary

I've been building a flutter application and its come time to release to internal testers and I've been running into issues. The error I get is this ERROR ITMS-

Error: Because project requires SDK version >=2.16.2 <3.0.0, version solving failed

I just tried to reactivate an old project, but it doesn't work. I get this massage in my "output": Because random_number requires SDK version >=2.16.2 <3.

TabBarView within Scrollable Page

I am having real trouble getting a layout to work within Flutter. The layout I am trying to create: A ListView that contains a: A Container. A TabBar. A TabBarV

How can i upload multiple images to firebase in flutter and get all their download urls

Here is my upload function. My desired output is a list of all urls, but it returns an empty list. I have tried different suggested solutions, but all of them h

flutter stuck on running xcode build

Flutter stuck on running xcode build; the verbose shows that it get stuck at here, [ +14 ms] Running Xcode build... [ +20 ms] executing: [/Users/navodsant

Flutter audioplayers error (1, -19) - No audio is played and the app doesn't crash

I am trying to use the flutter audioplayers package to play audio files and am getting this error. While following an online flutter tutorial I had this exact c

Flutter Google Maps: How can you change maptype after runtime?

I am trying to change from normal to satellite when pressing a button as shown below, but i get an error that setMapType does not exist. mapController.setMapTyp

(Flutter) HTTPClient Invalid argument(s): No host specified in URI

Currently working on a little app that allows users to view a database stored on Heroku, however I am running into the aforementioned issue when using the datab

How to fix Command PhaseScriptExecution failed with a nonzero exit code on flutter run in macOS?

I am working on a flutter app. I recently shifted to macOS and since then haven't been able to run the app. Other apps are running fine so I think the error is