Category "flutter"

Why does Dart expect a value of type dynamic instead of T in a generic class [duplicate]

So I'm working on a flutter app and created a generic dropdownbutton class that I want to fill with objects from a database. The dropdownbutto

How to handle multiple api calls in flutter

I'm trying to call multiple api's but i can't really figure out how to format the results in json for both endpoints. Future<List<dynamic>> fetchM

Flutter : /opt/..../FETCH_HEAD exists in filesystem Arch

While updating and installing some packages sudo pacman -Syu && sudo pacman -S --needed \ webkit2gtk \ base-devel \ curl \ wget \... on Arch Linux I go

Flutter disconnect and dispose bluetooth devices in proper method

Im using flutter reactive plugin https://pub.dev/packages/flutter_reactive_ble For connect and fetching data from multiple devices. Successfully i have connecte

How to screen off or lock the device by clicking our app icon in flutter

I want to turn off / lock the screen of my device by the clicking the icon of my app in flutter. Like some new Android devices have this functionality. Anyone P

Flutter Exception Error Creating StreamChat channel

Hello I'm trying to use StreamChat.io API to build a chat app but when I try to create a channel I get this error StreamChatNetworkError (StreamChatNetworkError

Select image for flutter web on mobile device

Im currently using https://pub.dev/packages/file_picker for this function FilePickerResult result = await FilePicker.platform.pickFiles(); if (result != nu

Call setState from class that extends StatefulWidget

If I update a variable using class object, the build method should get called, but I am unable to call setState from the StatefulWidget class. class CustomError

How to dim the tabar like in the picture?

I am developing a featured news app, how do I make a blur tabar like in the picture

How to get list index values from an unlist variable?

var _first=<double> [108,105,90.833,87.7,88.6]; var _answers=<double>[]; for (var i=0; i<_first.length;i++){ _answers.add(_first[i]); dou

Flutter WooCommerce Customer registeration failed using Dio?

I am buidling flutter woocommerce store app for customers. I want to create/register a new customer using Dio() and I am using WordPress Plugin JWT Authenticati

Cant get video progress time in Flutter better player

I am building a video player app in flutter with better video player. All things are working fine with better player except that i cant get the video player pro

E/LB: fail to open file: No such file or directory - Flutter

I try to display whatsapp Status images from the File directory ('/storage/emulated/0/WhatsApp/Media/.Statuses'). But there do not appear any image. Console sho

Deprecation warning in gradle in Android Studio in Flutter project

I have created a Flutter project in Android Studio (Bumblebee | 2021.1.1 Patch 3). When I open the android folder in a seperate window, when the gradle syncing

Drawer navigation that preserves state

I've got a basic navigation drawer with three options: Home, Settings, & About. I'm reusing this Drawer in each of my views. Abbreviated version: Drawer(

Pie Chart disappears when "defaultRenderer: charts.ArcRendererConfig" is added to Charts in Flutter

I am completely new to Flutter, but I need to develop a mobile app for a university project using Flutter & Dart. I want to add a Pie Chart to my applicatio

Flutter localisation method not generating correctly with plural placeholder

I'm currently localizing my flutter app using the intl package. I have a localised text that contains two placeholders: userName and dayCount, where I have used

flutter bloc outdated need help how do i update this, PreferencesBloc Try declaring a zero argument constructor, doesn't have a zero argument constru

it is an outdated multilanguage code with bloc flutter, the error is in, Any suggestion to fix it would be greatly appreciated. PreferencesBloc({ required

Flutter: draw over image with CustomPainter with DrawnLines

A part of an application I am working on involves editing photos. I am attempting to include an option to draw on an image. I can not find any examples of how t

Not able to align floating action menu in flutter

I have this menu on the floating button , but I could not align it correctly, I want it to show directly above the floating button, this is how it looks in red