Category "flutter"

How to stop phone's default font size from influencing font size inside the Flutter app?

So I made a Flutter app. I defined all the font sizes to be dynamic (render properly as per the screen sizes). Everything was working great until I opened the a

Flutter web view doesn't work on release mode

I'm creating a Flutter application. If I run this application on debug mode webview works well but if I run this application on release mode it shows blank scre

Flutter performing hot restart instead of hot reload

I just updated my flutter folder from 2.15 to 3.0. My app runs fine but there's a big problem: when I do CTRL+S, instead of reload my current page to see the ch

Flutter Web Persian/Arabic Strings Not Showing Properly on the UI

I just started to migrate to Flutter web and just at the start point, encountered this strange problem. When using Persian/Arabic Characters in code, it would b

Unhandled Exception: PlatformException(Failed to run model, Interpreter busy, java.lang.RuntimeException: Interpreter busy

I am trying to create an android application utilizing the MoveNet model from TFlite. The application is built but the following message occurs. The widgets are

Factory - A value of type 'B' can't be returned from the constructor 'A.factoryConstructor' because it has a return type of 'A<T>'

I have this simplified code: enum Types { b, c, } class A<T> { A(); factory A.factoryConstructor(Types type) { switch(type) { case Typ

I am getting this error while creating a new flutter project in android studio related to pubspec.yaml

name: i_am_poor description: A new Flutter project. publish_to: 'none' version: 1.0.0+1 environment: sdk: ">=2.16.2 <3.0.0" dependencies: flutter: sdk: fl

The operator '[]' isn't defined for the type 'Object'. Flutter Dart

Hello, could you help me with this error, I don't know how to solve it import 'package:firebase_database/firebase_database.dart'; class Users { String id;

How to fix this issue ? FAILURE: Build failed with an exception

I try to add a package name as new_version: ^0.2.3. After the terminal return the below error. How can I fix this? FAILURE: Build failed with an exception. Wher

The method '[]' was called on null. Receiver: null Tried calling: []("main") console error

Hi i am working on a weather app i learnt from a course, everything was working fine till i start with the refactoring and it just got complicated the code show

Positioning Row at bottom of stack Flutter

I have a stack with a fixed height, I want to place a row that contains multiple elements at the bottom of this stack. I wrapped my row that has mainAxisAlignme

Flutter : endDrawer icon hiden or actions button hiden

I had in my code a Drawer, and to hide the burger incon, i use "automaticallyImplyLeading = false". But now, i change to endDrawer and i dont know how the hide

Timer is not worked in background flutter

This code is not printed, when app go to background in iOS. Timer.periodic(Duration(seconds: 1), (timer) { print('timer'); } I need to save state to database a

Unable to update value: tween of TweenAnimationBuilder Flutter

I am trying to show countdown timer in my project app. First when user open a screen they can choose the duration of count down time by showing the radio button

I want to use custom font in Flutter Image.drawString

This is about Flutter, Dart, Image, specifically drawString function. First of all, what I am trying to do is watermark the picture taken with the address and t

Flutter Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

Recently, I used Flutter to reconstruct the previous Android project, but it could not be installed on some Android phones. The following is an error message: E

How to write an expression into a method?

How can I write the expression into a separate method for optimization: final listOfKeys= [_firstTabNavKey, _secondTabNavKey, _thirdTabNavKey] onWillPop: (

How to solve flutter web api cors error only with dart code?

It seems like CORS error is well-known issue in the web field. But I tried flutter web for the first time ever and I faced critical error. The code below worked

How to fix Chrome showing an empty / transprarent window for a Flutter web app on Linux?

When I run a Flutter web app in Chrome using Android Studio I only get an empty / transparent window on my Linux Mint 20.2 system. empty / transparent chrome wi

FlutterFire cli - how to switch between separate firebase consoles

I have two separate firebase consoles accessed from two separate google accounts. Firebase console "A" has three projects. Google account [email protected] Firebase c