Category "dart"

Flutter: Dismissable with Card and Margin

I'm building a simple listView in Flutter where the "cells" are simple Cards with a set margin. When dismissing these cards, the "margin" covers the dismissible

Dart Compress Uint8List Image

How do I compress a Uint8List image? The purpose to to get a smaller size (length in bytes). I'm trying to avoid converting the Uint8List to File before compres

How do i get past purchases in In App Purchase flutter?

I've developed application with in app purchase functionality. And for that i used in_app_purchase package. In previous version i'm getting past purchases. but

Remove default padding or margin on Bottom Navigation Bar from Flutter

This is the picture of the problem, is it a default padding on Bottom Navigation Bar? If it is, how can I remove it? As you can see in the code below, I have a

I am trying to build a bottom sheet in the below code when i am using Column,the code works fine,but doesnt work with Listview

showModalBottomSheet( context: context, isScrollControlled: true, isDismissible: true, shape: const RoundedRectangleBorder( borderRadius:

How to get the File Extension from a string Path

I've got file path saved in variable and I want to get the file type extension by using path package https://pub.dev/packages/path So far I managed to do it by

An InputDecorator, which is typically created by a TextField, cannot have an unbounded width

Not sure how to get rid of this error (An InputDecorator, which is typically created by a TextField, cannot have an unbounded width.), but also make the two inn

flutter: on background message handler is not being called

I have implemented firebase cloud messaging and firebase functions to my app and used flutter local notifications and added a showNotifications function to make

error when trying to get data from "data"

I'm getting this error when trying to get data from my "data". child: StreamBuilder<QuerySnapshot>( stream: FirebaseFirest

Displaying notification badge on BottomNavigationBar's Icon

I'd like to display notification badge (a colored marble) on the top right corner of BottomNavigationBar's Icon widget when a new message has arrived in the inb

Flutter future json list define as a final and stop updating it

I could fetch the JSON response from the server and make a list. Now I wanted to add a filter to that list. To do so, I followed an online tutorial. in that tu

Flutter - How to decrypt a RSA private key encrypted string if we have RSA public key with us?

Flutter app receives public key in the form of contents of public.pem file which would be a string like "-----BEGIN PUBLIC KEY----- MIICqq7DBi9sBXZfDYJC+G57JYUC

Why is FutureBuilder called multiple times?

Excuse the ignorance i am new to Flutter. I am practicing on a course I did and I have the following scenario: I have a view where I consume a web service in

Difference between "var" and "dynamic" type in Dart?

According to this article: As you might know, dynamic (as it is now called) is the stand-in type when a static type annotation is not provided. So, what i

Equivalent of RelativeLayout in Flutter

Is there a way to implement something similar to what RelativeLayout does on Android? In particular I'm looking for something similar to centerInParent, layout

Cannot find type 'PiPViewCoordinator' in scope

I am getting following error when i install JitsiMeetSDK in flutter but i am unable to run app. Can somebody suggest me how can i resolve this issue? I am usin

Send notification to specific user firebase in flutter

How do I send a notification to another user when one user presses a button? Can someone show me a code snippet? I realize that this question was asked before,

How to fix black screen in flutter while Navigating?

I am creating a multi-paged app on flutter. When I am using the navigation in it, I am getting a black screen. import 'package:flutter/material.dart';

Flutter: Dart Error: RangeError (index): Invalid value: Only valid value is 0: 1

Hey guys I am new to Flutter and trying to build a variation selector for an eCommerce application. I am getting this error while trying to build a size variati

Pass dynamic data from Scaffold body to Navigation Drawer in Flutter (using Drawer as side sheet)

I am developing a counter app which supports multiple counters. Since flutter does not provide a side sheet modal, I am using the Navigation Drawer as a side sh