Category "flutter"

Flutter: There should be exactly one item with [DropdownButton]'s value

I am trying to create a dropdown button in Flutter. I am getting a List from my database then I pass the list to my dropdownButton everything works the data is

Learning flutter from c# models and http call using http.dart for first time

I am learning dart coming from a c# back ground and flutter. I am following this tutorial https://www.djamware.com/post/5f308ef7185c336b811b362a/flutter-tutoria

Fix widget in bottom space

I need some help with a layout. I need put some widgets inside a "Scrollview" but keep the buttoms in the bottom space of screen. Image with a "Scrollview" wi

Flutter : audio_service with Video player

how can i use audio_service package with video player(ex : chewie or pod_player ) to play video in background and Android lock screen and notification, iOS cont

Freezed and json_serializable: How to use a custom converter

I want to add a custom converter to a freezed class like in this answer. I tried it with this code: @freezed class NewsPost with _$NewsPost { factory NewsPost

Flutter DocumentSnapshot - Error: A value of type 'Object?' can't be assigned to a variable of type 'DocumentSnapshot'

return StreamBuilder( stream: usersRef.doc(post.userId).snapshots(), builder: (context, snapshot) { if (snapshot.hasData) { DocumentSnapshot snap

Make container widget fill parent vertically

TL;DR Need the container to fill the vertical space so that it can act as a ontap listener. Have tried most solutions but nothing seems to work. So what I am t

Flutter / Dart Convert Int to Enum

Is there a simple way to convert an integer value to enum? I want to retrieve an integer value from shared preference and convert it to an enum type. My enum i

Remove hash symbol ' # ' from Flutter web navigation

I want to create one simple web application with Flutter web but after I create some simple application with this document I faced with some issue on routing ad

Adding box shadow to TextInputField flutter

I was working on a project involving inputs. I want a box-shadow to an input. I have tried the BoxShadow widget on the container but it drops the shadow on the

Flutter Android 12 install error when using intent-filter

I'm struggling with the error below. adb: failed to install F:\xxx\src\FlutterDemoApp\FlutterDemoApp\build\app\outputs\flutter-apk\app. apk: Failure [INSTALL_PA

Parsing Nested JSON within Flutter

I am trying to parse nested JSON from the VirusTotal API but when ran it comes back as this error, I tried a different method found in https://app.quicktype.io/

Can not build the android application after upgrading to flutter 3.0

Command: flutter run --flavor dev --no-sound-null-safety FAILURE: Build failed with an exception. Where: Script '/Users/petodavid/Developer/flutter/packages/flu

How to change default gradle version for flutter projects

This is my build.gradle file: buildscript { ext.kotlin_version = '1.6.10' repositories { google() mavenCentral() } dependencies

Column child PageView interaction through the whole screen

I'm trying to create a screen as follows: The bottom part is PageView.builder. I want it to be interactable through the whole screen. The first thing I came up

ERROR: Failed to create project. See firebase-debug.log for more info

i Found 0 Firebase projects. ✔ Enter a project id for your new Firebase project (e.g. my-cool-project) · onoja i New Firebase project onoja create

Flutter Error while building for first time

FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root project 'android'. Could not resolve all artifacts for configurat

Upgraded to Flutter 3.0 from 2.8.1, getting: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null error

Upgraded to Flutter 3.0 from 2.8.1, getting: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null error It's on binding.

How to add a File Picker plugin in Flutter?

I am creating a Flutter project in which, I have a piece of data (JSON) that I want to Import from and Export to a location the user wants to. In order to achie

How to programmatically select BottomNavigationBar Tab in Flutter instead of built in onTap callback?

I have been working with BottomNavigationBar in the flutter, but I am not able to select a Tab programmatically outside of onTap callback of BottomNavigationBar