Category "dart"

Flutter - Media Query for keyboard height always returns zero

I'm trying to subtract the height of the keyboard from the height of the screen so I can apply that value to the height property of my listview container. This

Hide Overlay only works at random times

I'm working on this flutter app and I've created this icon at the bottom of the screen. It's an overlay so it can stay at the bottom of the screen. Furthermore,

'package:flutter/src/widgets/framework.dart': Failed assertion: line 5356 pos 14: '()

I get the error 'package:flutter/src/widgets/framework.dart': Failed assertion: line 5356 pos 14: '() { // check that it really is our d when I tab on

Can't Access Cookie in HTTP Response with Flutter

I'm working on Flutter an app which will use Express based REST api. While implementing Cookie based sessions, I wanted to retrieve cookies from app with basic

SDK Version Issue.This app was built with the iOS 14.5 SDK

ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 14.5 SDK. All iOS apps submitted to the App Store must be built with the iOS 15 SDK or lat

Send data from another website to flutter

Is it possible send data from a website to flutter website and take data with GET or POST like PHP? In PHP we can take data with GET or POST. Let's say we are s

Flutter AMSupportURLConnectionDelegate is implemented in both ?? Error

I am facing many issues since I migrated my project to an Apple Silicon mac. I finally managed to reduce the problems but not sure the answer to this. Running "

successfully display json in flutter, but not showing on android screen

I've managed to display API data to flutter, but strangely it only appears in the debug console, but when hot reloaded, the data appears on the android screen.

Can anyone please explain the use of null-shorting cascade in Dart?

I'm confused about what the documentation says here:

what is the proplem in super method?

I have a problem in this code with dart: void main() { Mobile OPPO = Mobile( color: 'yellow', price: 5500, ); OPPO.printColor();

Flutter Transform translate a widget from current position to another position

If I want to translate any Widget in my flutter app, I will use below code. Transform.translate() Translate function required Offset (dx,dy). But I want to f

Flutter - FutureBuilder fires twice on hot reload

In my flutter project when I start the project in the simulator everything works fine and the future builder only fires once, but when I do hot reload the Futur

pull down to REFRESH in Flutter

My dashboard code looks like this, Here I am doing get req in getReport method, I have added the RefreshIndicator in the code which when pulled down inside cont

ERROR: The GPU does not support this version of OpenGL ES, try an older version in flutter

I/Adreno (21484): ERROR: The GPU does not support this version of OpenGL ES, try an older version D/skia (21484): Shader compilation error D/skia

Error on trying to jsonDecode String in Flutter application

When I try to decode a json String: [{"device-mac":"C9BF2EB47C17","on":true}] with the following function the error: I/flutter ( 8954): type 'List' is not a su

In Dart, how to verify a void method that does not throw exception in unit tests?

I am implementing some data verification library in Dart. The validating method has void return type and throws exceptions on errors. The code below shows an ex

codeUnits property vs utf8.encode function in Dart

I have this little code: void main(List<String> args) { const data = 'amigo+/=:chesu'; var encoded = base64Encode(utf8.encode(data)); var encoded2 =

The difference between the use of constructor " className() and className._()

I have these two ways to write a constructor. className() and className._() What is the difference between them and when should I use which? class GlobalStat

how to access flutter bloc in the initState method?

In the code shown below , the dispatch event is called from within the build method after getting the BuildContext object. What if I wish to do is to dispatch a

codeUnits property vs utf8.encode function in Dart

I have this little code: void main(List<String> args) { const data = 'amigo+/=:chesu'; var encoded = base64Encode(utf8.encode(data)); var encoded2 =