Category "dart"

Flutter pod install error when i add package firebase_core

I added my Firebase project for ios and android. I did not have a problem in Anroid, but when I run it on IOS, pod install gives an error. The error description

Flutter method channel error. { Unhandled Exception: MissingPluginException(No implementation found for method getBatteryLevel on channel battery) }

so i followed everthing from 'https://flutter.dev/docs/development/platform-integration/platform-channels?tab=android-channel-java-tab' but when I click the flo

Deleting a folder from Firebase Cloud Storage in Flutter

I have a Flutter mobile app in which I am trying to delete a folder (and its contents) from Firebase Cloud Storage. My method is as follows: deleteFromFirebaseS

What is the use of BlocSelector in flutter_bloc

There is no example found for the usage of BlocSelector. Anyone knows the real usage of it?

GetX middleware runs before binding?

Here is my Auth middleware: import 'package:donirajkrv/controllers/user_controller.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart';

Calling dispose function in stateless widget using provider

I maintain a state of a counter(let say) in a separate Singelton class I am using provider in my app and I want to reset that state when I pop the current scree

How can I decode a string from base64 to binary to decrypt it with RSA in flutter?

I have an encrypted string with RSA that I have encoded in base64 to put it in a QR-code: echo "thesearesecretlogininfos"|openssl rsautl -encrypt -pubin -inkey

After a Flutter upgrade, I am getting the error "Could not resolve all files for configuration ':app:debugRuntimeClasspath'"

When I upgraded Flutter from Flutter 2.10.2 to a newer version, I got this error on every Flutter project I had created. Even when I created the new Flutter pro

PHP array_diff() equivalent in Dart? (Comparing two maps and return a map of difference)

I simply want to produce the same effect that PHP's array_diff() function does in Dart, and for those who don't know PHP or this function, my apologies but unfo

Because testing_app requires SDK version >=2.16.1 <3.0.0, version solving failed. in flutter

I am learning more about testing and i want to use Mockito Package and Build Runner Packate then i have my class Cat inside lib/models/cat.dart then i have my

How do I get an overlay to appear on a button click and then that button stay above the overlay in flutter?

I'm developing an app and I want the button I click on to activate a total screen overlay. Basically turn the screen darker whilst keeping the button I've click

Flutter Firestore - Load insted references in same model

My project has a document with two or more references, sometimes I need to load these references data before display the data itself. For example: "Item" docume

How to apply Scroll controller for multiple SilverList or ListView items?

I have found the internet a way to hide arrow when scrolling horizontally through FlutterLogo with CustomSrollView. The functionality works and i want to place

Dart abstract factory method

I'm pulling table data from api in my application that I wrote with Flutter. According to the API used in the table data, different types of data are coming. I

auto converting json to object in dart flutter

I search google and stackoverflow but did not find some auto converting lib like in C# I need something in dart-flutter alternative to this code in C# strin

How to convert SVG to PNG in flutter

I am looking to convert SVG from assets to png and write it to File. I have managed to write SVG to file, but I want to write the image to a file as a PNG code

Flutter FutureBuilder exceptions: add default behaviour

In my app I use FutureBuilder extensively and I would like a generic behaviour when one of them fails. I am trying this setup WidgetsFlutterBinding.ensureIniti

W/Choreographer(11277): Frame time is 13.988632 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase

W/Choreographer(11277): Frame time is 13.988632 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. This is t

Drawer Menu Shows Gaps

I am new to flutter. I got a Drawer Menu but there is a little gap between user information side and menu items section. drawer menu user information side impo

how to read Twitter hash tags in Flutter?

I have wondered if there is a way in which I can read Twitter hashtags in a flutter, I have seen many apps using that, so in flutter can I have Twitter API whic