Category "dart"

How to solve flutter Execution failed for task ':twitter_login:compileReleaseKotlin' error?

I am trying to build an apk from my flutter application. I am using the algolia native api and modified my FlutterActivity according to this official documentat

Rename image that has been picked by imagepicker for flutter

I would like to rename the file that i already pick from my gallery by image picker, i already try the below method using renameAsync String dir = path.dirname(

how to change prettier format for react native

my code formatting prettier didn't works well for react native, i don't understand where to config it but it works well with flutter from this code import

'Size' is imported from both 'dart:ffi' and 'dart:ui' Flutter 3

After upgrading my flutter from 2.10.5 to 3.0.0, I have those errors on my android studio and the project don't build anymore on windows 10. How can I solve thi

How to Get Subcollection docs in Firestore Collection Group Query Flutter

I have a collection and Subcollection, I want to get the data of subcollection along with main collection data. I am using collectionGroup query, but don't know

Can you make complete apps using Flutter & Dart or just the UI part of an app?

I'm confused about what Flutter framework actually does, I know that it uses Dart and have heard that both of them can be used to create cross-platform apps. Bu

Is it okay to use an onPressed function in a ChangeNotifier child class

I am using provider for state management, and I've given onTap a value in a function in the ChangeNotifier child class but my app is unresponsive, I mean, when

Flutter web: Opening direct URL navigation working on local but not after deployment

I am trying to implement Flutter web url navigation in my application. When I am trying to open http://localhost:7357/privacy-policy directly it is opening fine

A 2d list made from List.from(), updates the original list

I want to copy the elements of a 2D list into another list. Let the source list be List<List<int>> source, and the list to which I'm going to copy t

Flutter: The getter 'answers' isn't defined for the class 'List<Map<String, Object>>'

I am trying to access 'second' from the below: final basic_answers = const [ { 'questionText': 'Q1. Who created Flutter?', 'answers': [ {'first': 'Faceb

Passing model object as an argument with Flutter GetX

I need a model object on two screens. I have 2 questions: Is passing a model object (from one screen to another) required if we are using GetX? If yes, how do

Placing dropdownbutton selections into a to-do list

I am very new to Flutter/Dart, so please forgive my ignorance and please explain everything to me like I am a five year old. I have a screen on my app where I w

How to play private domain Vimeo video in flutter app

I am trying to call this API using the Bearer authorization token to get video detail. but still, the video does not play. GET: https://api.vimeo.com/videos/{vi

Flutter - The non-nullable local variable 'newTaskTitle' must be assigned before it can be used

Hi so I have been getting this error - "The non-nullable local variable 'newTaskTitle' must be assigned before it can be used. (Documentation) Try giving it an

Why aren't my apps showing anything after i added list tile

import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; class Reservation extends StatelessWidget { @override Widget build(BuildCo

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

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

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

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