Category "flutter"

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

How to add a new option in text selections toolbar

I want to add a new option in the text selection toolbar, an extra option apart of the classics cut, copy, paste, selectAll. enter image description here I use

How to enable Custom Icons on Flutter Web CanvasKit?

I have custom icons that work fine on IOS and Android. When I deploy on the Web, a crossed out box appears in each place in the App where my icon should appear.

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

FirebaseMessaging.onBackgroundMessage in iOS when app is terminated/in-background never called

I have this issue, that I have a handler passed to FirebaseMessaging.onBackgroundMessage(firebaseMessagingBackgroundHandler) that's responsible to save the inco

Flutter - getApplicationDocumentsDirectory() : How to get the path in android and iOS

Directory tempDir = await getTemporaryDirectory(); String tempPath = tempDir.path; In android native code, I use getCacheDir() How do i get the getApplicatio

How to use BlocProvider in flutter

I had Bloc class before using BlocProvider as below. And I want to use blockProvider using 'flutter_bloc 4.0.0'. class SelfRentalBloc { final _srsController

Why does my Flutter app crash at startup on iOS?

I'm trying to build a simple app using Flutter for iOS and Android, but the app crashes on startup when I try to run it on an iPhone (Android runs fine). I don

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

How to observe ObservableList item properties changes

I'm building a shopping app in Flutter using MVC pattern and mobx for app state management. At the moment, I have a mobx store for cart items and one store for

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

Flutter build iOS got error: Requested but did not find extension point with identifier

I just upgraded to Xcode 13.3-beta, running a flutter project got this error: Error output from Xcode build: ↳ 2022-03-02 17:45:38.148 xcodebuild[6284

How to dismiss an AlertDialog on a FlatButton click?

I have the following AlertDialog. showDialog( context: context, child: new AlertDialog( title: const Text("Location disab

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,

Flutter Stateful widget inside a Stateless widget and vice versa

How does Flutter rebuild/repaint work in case of: Creating a Stateless widget inside a Stateful widget. Creating a Stateful widget inside a Stateless widget. Do

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';

Display widget with based on sibling max width

I got a Column, it contains many Text entries of different sizes and I'd like to have them expand to the same width than the largest text. My Text entries are

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