Category "flutter"

In my flutter app when i open gps or camera or map , or any url , getting error "Lost connection to device." everytime

I am testing on a real device(Redmi 7A) when I open Camera ,URL,GPS, app always get error "Lost connection to device." but when i test on Samsung m31 or Samsung

Can't configure the Android Spellchecker service to simply validate if string is a valid word or not

I am building a Flutter app that requires that I validate if a string is a valid word. The user is not inputting text, he is using elements to build the word. S

how to POP with animation in flutter

I am triggering a Navigator.pop event and I want to fade out the transition to the page. I have tried Fluro but not I'm not interested in implementing it. This

How to remove backstack including home page in flutter

I have seen many examples but none of them providing me a way to remove the entire back stack(including the home page) while navigating to the next page. Eg:

Query Elastic App Search with flutter using public api key

I am developing a Flutter mobile and web app to query data from Elasticsearch. The Elastic App Search provides me a public search key which I would like my Flut

Unable to overwrite a Dart/Flutter value - setting today's date correctly on pressing button

apologies for a simple question but I just started my Dart/Flutter hobby and ran into the following issue: I wanted a simple App that has a defined end date ("d

Remove the spaces between Gridview in Flutter

I want to remove the spaces between gridview children. I will provide an image of what I need and what below respectively. I used the GridView() by the way. Gr

A List of all flutter Icons

I have recently started flutter and I face difficulty in searching for appropriate icons whenever I want to use them. Is there any website or any source from wh

Flutter MaterialBasedCupertinoThemeData usage

I create a simple MaterialTheme for both light and dark and then try and use MaterialBasedCupertinoThemeData to create a derived CupertinoThemeData from that. W

How to access Infrared Camera of Smartphone using Dart and Flutter?

I have a Xaiomi POCO F1 which has integrated infrared face camera sensors. I was wondering how to access them using Dart and flutter framework. There are no API

Flutter - Lines between containers

I made a Flutter page but I have 2 lines that I don't know how to hide. This is my piece of code: return Column(children: <Widget>[ Stack( alignment

Changing height of container with TextField

How can I change the height of a container and automatically bring the cursor to the next line a line gets filled ( similar to WhatsApp where we type the messag

App not returned to portrait mode in full screen mode

I'm trying to put an App in full screen mode, but when I return to portrait mode, the full screen mode continues Widget build(BuildContext context) { MediaQ

Remove space between widgets in row flutter

I need to remove the space between two or more Text widgets in a Row. This is the code using a Row Row( mainAxisAlignment: MainAxisAlignment.start

When should I use a FutureBuilder?

I was wondering when I should use the future builder. For example, if I want to make an http request and show the results in a list view, as soon as you open th

Why am I getting errors while adding launcher icon in flutter project?

So, I am trying change the default flutter launcher icon with my one. I am using the flutter_launcher_icons: ^0.9.2 from pub.dev. The code in pubspec.yaml: depe

How to refresh an AlertDialog in Flutter?

Currently, I have an AlertDialog with an IconButton. The user can click on the IconButton, I have two colors for each click. The problem is that I need to close

"Minimizing" the current screen in Flutter

I'm building an app where I ping some data in my screen with the StreamBuilder (time, location, etc.), now I want to make an option for the user to leave the cu

Flutter Offline Authentication

In my app, the user should be able to login regardless whether they are online or offline, so is it possible to add offline authentication capabilities to my ap

Error: NoSuchMethodError: The getter 'sessionToken' was called on null

Hello fellow programmers! I am starting in the world of Flutter programming. I am following a course on Udemy, the questions are never answered by the teacher a