Category "dart"

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

Cannot Select Checkbox List Tile Flutter

I've created a map of values to make checkboxes. The map consists of String and bools and when the value of the bool is changed, the check box value should chan

How to install Dart in Google Compute Engine (GCE)?

I am trying to learn both Dart and GCE. I already created a server at GCE, but I don't know how to install Dart since I can only use Linux commands on the Debia

Flutter/Dart: getters with a parameter

I can't understand how this works. In the class: Function(int) get myGet { return myStream.sink.add; } and its implementation in a screen: myObject.myG

Flutter doctor error - Android sdkmanager tool not found. Windows

I have been going round in circles with this issue, there are so many that people have issues similar to mine, but not one of them is the same. I am trying to g

How to verify certificate chain in Flutter?

I have a mobile app written in Flutter that stores an intermediate cert. Other mobile clients can send certificates to this device and it should decide whether

Flutter Firebase Auth: A network error (such as timeout, interrupted connection or unreachable host) has occurred

I am trying to integrate authentication on Flutter using firebase_auth. However, whenever I call the verifyPhoneNumber("+256XXXXXXXXXX") I get the error message

Close Navigation Drawer on Back Button Pressed in Flutter

I have a material designed Navigation Drawer in my very first flutter app. This work's fine but I did't find any way to close the Navigation Drawer on Back Butt

prefer const with constant constructor

I have an error that shows this message "prefer const with constant constructor" when i deleting const on below class splashscreen theres not showing any error

Flutter dropdown alignment not proper

I want the dropdown like this with flutter Expected: with flutter dropdownformfield I'm able to do something like As you can see, When I click the dropdown bu

Flutter Cannot run Project.afterEvaluate(Closure) when the project is already evaluated

Workaround way: Looks like there is dependecy of onesignal plugin on flutter_tools. The solution is to place onesignal plugin after it in the sequence in the "a

Either zero or 2 or more [DropdownMenuItem]s were detected with the same value

I am new to Flutter but I am trying to create a DropdownButtonFormField and it is not working. I am getting an error that says I have duplicate values. What is