Category "flutter"

How to set controller and focusnode in custom TextField - Flutter

I'm trying to create my custom TextField widget with a dropdown list. I want to give it arguments of controller and focusnode. I don't want them to be required,

Flutter: Is it possible to make a P2P connection with nfc_in_flutter package?

I would like to send a message from an Android device to an IOS device using NFC. I found multiple NFC packages and tried out example app from nfc_in_flutter bu

dart:ui:1: Error: Not found: dart:ui. flutter/dart:

When I start a debugging session (pressing F5) I receive the following messages: dart:ui:1: Error: Not found: dart:ui. Exited (sigterm) There is no indicatio

Flutter - Adding Container (widget) in GridView when click a button?

I wanted to add a container widget in the GridView when a button is clicked. I was able to do this with the column widget but could not do it with GridView. im

Flutter webview intercept and add headers to all requests

Using the webview_flutter package i could load my website and add session cookies to the initial URL. _controller.future.then((controller) { _webViewControll

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