Category "flutter"

Why im getting this error Warning: Operand of null-aware operation '??' has type 'Color' which excludes null

Im using this package flutter_datetime_picker: ^1.5.1 And this is my code String _date = "Please pick Age"; Widget _buildage() { return Column(crossAxis

Dart/Flutter How to compare two TimeOfDay times?

TimeOfDay documentation has no comparison operator and primitive comparison does not work. My only solution that I can thinking of right now is to convert TimeO

How to display a dynamic map using Tabs and SliverGrid

I have a Model called service provider that contains a the following data: class ServiceProvider { final String logoUrl; final int lowerPrice; final

flutter admob issues on m1 mac for android

Admob for Android emulator IPixel_2_API_S:5554) hangs a lot with errors/warnings. It looks like something to do with com.google.android.gms.chimera, which I be

How to display notifications on windows using flutter?

I want to show notifications on windows using Flutter. But I'm unable to do so. I've tried packages like deskkop_notifications and flutter_local_notifications.

Flutter login page authentication using mysql

I am trying to connect my login page so that it fetches data from my users table in mysql and logs the user in but I am having some problems with my code Futu

How to make slide in transition for ListTile in listview in Flutter

I am making an app whose structure is very simple. A ListView with Listtiles in it. I want to add animation such that when the screen is opened the listtiles sl

Google Map freezing in flutter

when I integrate google map in flutter, the first once I launch the screen that contains google map widget it freezes my app. note I'm using tab view widget

How to retain the state of the app when navigating to another screen in flutter using riverpod

Good day, guys I'm new to using Riverpod, I have a counter app that when the FAB button is tapped it increases the counter by 1. This works well using Riverpod

Flutter - iOS build using Bitrise

I am using Bitrise to generate iOS build of my flutter project. I have follow this steps to configure workflow. It shows me error like this. . Can you please gu

ScrollController attached to multiple scroll views Failed assertion: line 109 pos 12: '_positions.length == 1'

I make error when using animateToPage ScrollController attached to multiple scroll views. 'package:flutter/src/widgets/scroll_controller.dart': Failed assertio

How to delete unverified e-mail addresses in Firebase Authentication/Flutter?

After registering with Firebase Authentication "Email / Password",saving e-mail without verification.I have application with Flutter firebase. When someone regi

How to make toMap and fromMap method for Enums class dart flutter?

I used an enum variable in a class. Now I want to implement the toMap and fromMap methods for the class. enter code here enum ColorNumber { inc, dec, none }

flutter onClick delete image from firebase storage and firestore

I need on click delete image from firebase storage and firestore I've written this code that does the delete from firestore only. onLongPress: ()async{ await

Flutter web app is missing firebase.json and shows "Welcome Firebase Hosting Setup Complete" when deployed to firebase hosting

Background I am using Android Studio to create a Flutter web app. The app runs successfully on localhost in Google Chrome. When I deploy it to Firebase hosting,

How to read and write a text file in Flutter

How do you read text from a file and write text to a file? I've been learning about how to read and write text to and from a file. I found another question abo

Flutter The argument type 'String' can't be assigned to the parameter type 'Map<String, dynamic>'

I got the problem when I want to fetch Data from PONS API. import 'package:eng_it_translator/model/model.dart'; import 'package:http/http.dart'; import 'dart:co

Error: Try adding an initializer expression, or add a field initializer in this constructor, or mark it 'late'

void main() { Car c1 = new Car('E1001'); } class Car { String engine; Car(String engine) { this.engine = engine; print("The engine is : ${engine}

TabView inside CustomScrollView

Wrapping TabBarView with SliverFillRemaining (fill remaining empty space like Expanded) gives the following error output. flutter: A RenderPositionedBox expect

Flutter - remove a firebase document onTap()

I have a ListView, filled with Firebase collection as chat messages. When the user long press a ListTile (an item on the list), I show a BottomSheet. When the