Category "flutter"

how to solve "VM Exception while processing transaction: out of gas"

I faced a VM Exception while processing a transaction: out of gas error in contract. Here's my truffle-config.js file: development: { "http://127.0.0.1:8545

Navigator operation requested with a context that does not include a Navigator

I'm trying to start a new screen within an onTap but I get the following error: Navigator operation requested with a context that does not include a Navig

How to hide Android StatusBar in Flutter

How to hide the Android Status Bar in a Flutter App?

Dart, Nested classes, how to access child class variables

I am new to Dart/Flutter. So forgive me. I am trying to create a Object class mentioned as TestData below. And one of the variables in TestData is a Map of Test

Flutter - How does it work behind the scenes?

Obviously, flutter is a framework for running apps on iOS and Android using one codebase. But how does it manage to do so? Will it compile to native code, or is

MissingPluginException for Linux desktop app

Just added desktop support to my flutter app, it runs fine in the android emulator, but wont render any element in neither browser nor desktop, just a simple bl

Trailing widget consumes entire tile width. Please use a sized widget, or consider replacing ListTile with a custom widget

I am making a basic shopping app .My idea is to make a list tile of my products so that I could edit or delete the products . So when i navigated to that page

Send notifications using REST api

I want to use the http package to send notifications to topics through the flutter app using the docs as in https://firebase.google.com/docs/cloud-messaging/sen

How to create a hyperlink in Flutter widget?

I would like to create a hyperlink to display in my Flutter app. The hyper link should be embedded in a Text or similar text views like: The last book bought

How should I access a Riverpod provider from a different file?

I'm used to provider's Provider.of() call to get a provider from elsewhere in the widget tree, but every Riverpod resource I've found relies on having access to

Flutter: json_serializable ignore nullable fields instead of throwing an error

Suppose there are two models User and City @JsonSerializable() class User { int id; String name; City? city; List<Map<String, City>>

How to save the document id in document field while creating it in Flutter Firebase

I am trying to save the document id in the a new field but if i use 'postId': _firebase.collection('Posts').doc().id, this will generate a new id any suggestio

Programmatically scrolling to the end of a ListView

I have a scrollable ListView where the number of items can change dynamically. Whenever a new item is added to the end of the list, I would like to programmatic

RangeError (index): Invalid value: Valid value range is empty: 0

I am trying to fetch a list from API that is two methods fetchImages and fetchCategories. the first time it is showing a red screen error and then after 2 secon

Flutter: Error says - Could not find a generator for route RouteSettings while trying to navigate to another screen

Although questions with such error messages exist in this site, none solves my problem. I have a button and on clicking the button, I just need to go to a diffe

RangeError (index): Invalid value: Valid value range is empty: 0

I am trying to fetch a list from API that is two methods fetchImages and fetchCategories. the first time it is showing a red screen error and then after 2 secon

Flutter, Freezed: Set Class as default value

I have a User class which contains a Purchase class. I want to make it non-nullable, but not required. So this means that I would need to set a default value. I

Customize dropdownbutton - going up

It's maybe a stupid question, but I don't know how to make a dropdownbutton that go up and no down when it is focused. Maybe I need to create my own ? Or is it

How to build an app locker application using flutter

I want to create an app which allows to put lock on the other apps that are to be protected in the device. This app lock will start automatically before opening

Get full address details based on current location's latitude and longitude in Flutter

I have used the location plugin in the flutter, I can get the latitude and longitude only. How to get the full address details. Codes on below. Future<Map&l