Category "dart"

Execution failed for task ':google_api_headers:compileDebugKotlin'

After updating to Dart 3.0 I have this error when I launch the app on Android simulator. For iOS physical device its building ok. Unfortunately can't try with A

In Flutter is it possible to increase the transparency of a Dismissible widget the further it is dismissed?

I have a Dismissible widget in my application that I drag down to dismiss. There is a requirement that the transparency of the Dismissible should increase the f

Flutter: Illustrate List of Strings with a for-Loop doesn't work

I am really confused why does this only work without the braces around the for-Loop. child: SingleChildScrollView( child: Column(

Style BottomNavigationBar in Flutter

I am trying out Flutter and I am trying to change the colour of the BottomNavigationBar on the app but all I could achieve was change the colour of the BottomNa

How to Initialize the List with the same element in flutter dart?

I have a list in dart I want to initialize the list with n number of the same element. example:- initialize the integer list with element 5 4 times. L

Flutter - use WillPopScope with custom dialog to confirm app exit

I've implemented app exit confirmation this way: return WillPopScope( onWillPop: _promptExit, child: Container() /*Remaining window layout*/ _prom

Is it possible "extend" ThemeData in Flutter

I might very well be missing something as I'm so new to flutter, but I'm finding ThemeData's options very limited (at least with my understanding of how to impl

flutter_markdown multiple line breaks not working

I am trying flutter_markdown package to markdown some content. But it is not working properly for multiple line breaks. String exampleData="\n\nLine 1. \n\nLin

How to reduce the size of Flutter .aab file?

I made a calculator app using flutter and when I generated the .aab file, it came out to be 16 MB! How do I reduce the size of my .aab file?

Switch case with multiple values for the same case

I would like to know the syntax to set a multiple case statement in a switch / case. For example : String commentMark(int mark) { switch (mark) {

Enforce providing <T> in Dart generic method

How can I enforce providing the generic type of a generic method in dart. By default, dart allows us to not provide a generic type at all. And this should be a

Flutter Mailer isn't working due to these errors

I am trying to send a form from flutter app to my email automatically when the user submit the form. here's the code : import 'package:flutter/material.dart';

How to extract Left or Right easily from Either type in Dart (Dartz)

I am looking to extract a value easily from a method that return a type Either<Exception, Object>. I am doing some tests but unable to test easily the r

Flutter Converting network image into byteData

Is there any better way to convert network image to byteData? I am trying to convert network image from firebase url to byteData and here is my code: Future<

package facebook_app_events version 0.16.0 E/MethodChannel#flutter.oddbit.id/facebook_app_events(16052)

I install the package facebook_app_events version 0.16.0 that includes the latest facebook sdk. The problem is that when I try to log an event or get an anonymo

Can't convert Map to List in Dart, facing "Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'Map<String, dynamic>" error

I know this question has been asked, but I'll explain my problem and show you what I've tried. So, I receive a response from an API, that looks exactly like thi

Error: The instance member ... can't be accessed in an initializer

Why does this code: class _SequentialTextPageState { String jsonTextPref = 'seqtext'; int jsonTextSuff = 10; String jsonText = jsonTextPref + jsonTextSuff

Method not found: 'guard'. return internals.guard(

i am new to flutter.when i run this code on flutter web this error occurs. .pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-1.0.7/lib/src/internals.dart:1

How to load events from firebase for a specific user for tablecalendar

I am currently building a project where a list of trainers is displayed for a user. When tapped on a listtile showing the trainer a modalBottomSheet opens up sh

how to solve "Target of URI doesn't exist package:flutter_facebook_login/flutter_facebook_login.dart" in flutter?

i am a noob and trying to run an app that i cloned from github but i am getting this error i tried everything i could find on various sites but couldn't get rid