Category "flutter"

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

Flutter with flavors not building to iOS

Goody day, When building to android I have no issues with using the flavors. This is not the case for iOS, I receive the following error: Finished with error

Facebook App Events not working in Flutter

I have a flutter application where my task is to log user events using facebook app events. I have added the following package to my pubspec.yaml: facebook_app_

Persisting AppBar Drawer across all Pages Flutter

I am trying to create a uniform drawer that is accessible across all pages in my app. How do I make it persist throughout all these pages without having to recr

Firebase RTDB trigger not fired from Flutter Firebase SDK triggering event

I am developing an application in Flutter and during development, I encountered this anomaly. On Firebase Realtime Database I have a simple trigger for testing

FirebaseOptions cannot be null when creating the default app

I am trying to try a sample project in Flutter integration email and google based login, and planning to use firebase initialisation for doing it while I have f

Problem converting FirebaseAuth.instance.currentUser to Future in Flutter FutureBuilder

I am new to flutter and have taken this course which uses an older version of FirebaseAuth that returns FirebaseAuth.instance.currentUser() as future to Future

flutter: Multiple projects in this build have project directory

I'm developing a flutter application on Mac, the app runs ok on ios when I try to run it on an Android device, it pops out: FAILURE: Build failed with an except

Force ListView to shrink to contain children

The most similar question I could find was 'how to create a row of scrollable text boxes or widgets in flutter inside a ListView?', however their solution was j

Problem converting FirebaseAuth.instance.currentUser to Future in Flutter FutureBuilder

I am new to flutter and have taken this course which uses an older version of FirebaseAuth that returns FirebaseAuth.instance.currentUser() as future to Future

Convert time to am/pm flutter

How to convert the time to am/pm ? I have this output I/flutter (17720): 9:00:00 I/flutter (17720): 11:00:00 I/flutter (17720): 12:00:00 This is what I have

How to access window.navigator.serial in flutter web

On some browsers there exists the the property serial on the window.navigator object. I can see it on chrome but not on safari. How can I access that object via

Implement Firebase App Check for Flutter app

I want to add Firebase App Check service to my Flutter app. I found this tutorial: https://firebase.flutter.dev/docs/app-check/usage, I have been able to comple

Error: Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1 I have this problem on Android Studio. Does anybody know how to fix th

Android build issue with 'scan' plugin - Flutter

Android build failing with following exception. Plugin: scan [https://pub.dev/packages/scan] FAILURE: Build failed with an exception. What went wrong: Executio

Flutter: How can I make a Random color generator Background

Generate random colors return new RaisedButton( padding: EdgeInsets.symmetric(vertical: 30.0), color: Colors.primaries random List <blue,gr