Category "dart"

Flutter:MainActivity cannot be converted to FlutterEngine in Java Native code

I am trying to create a plugin for Flutter in Java. I am trying to pass the Android activity parameter in my main Java class. This is my native code: package

Is a Firestore Query Snaphot in flutter ever null?

In my flutter app I am checking if a document exists based on certain parameters and based on snapshot.hasData build the widget. However I remember reading som

Dart / Flutter - Validating a string for URL

I'm trying to create a system in which I can validate a string to check if it's a url or not. (https://www.google.com/) I found the flutter package validator b

Dart - make long running synchronous function asynchronous

I have a function that might take a few seconds to execute, and it is synchronous. Does: String slowFunction() { ... } ... Future<String>(() => slowFu

It seems that pthread_join() is not invoked or PTHREAD_ATTR_FLAG_DETACHED is not set Flutter Firebase

I've followed a tutorial regarding 'Flutter Firebase Authentication. I faced many issues due to it being in an old version of firebase, but I migrated and fixed

Flutter - Error: Unable to create dart snapshot for flutter tool

When I run flutter change channel or flutter doctor, the CMD show me this: C:\Users\MyUser>flutter doctor -v Checking Dart SDK version... Building flutter

How to show time in AM or PM format from TimeOfDay with flutter?

I used ShowTimePicker class to select time according to my wish but want to show it in PM or AM with Text .like 9:00 AM, 10:00 PM. means take 12 hours format.

"Missing 'package' key attribute on element package at AndroidManifest.xml:11:5-64"

Actually I published a app in play store, in the next update I want to add UPI payments in the app. So, I am using upi_pay package. When I installing the packag

Flutter: How to use RefreshIndicator with SliverAppBar

I'm trying to add RefreshIndicator to CustomScrollView. Is it possible to do? Here is the code sample: CustomScrollView( slivers: <Widget>[ SliverAp

How generate specific widget dynamically inside ListView.Builder?

How generate specific widget dynamically inside ListView.Builder? I have my data coming from StreamBuilder, this data coming in numbers [1...24] sometimes comin

Flutter AnimatedSwitcher jumps between children

I am trying to implement some custom design in an expasion panel list. Therefore, I wanted to create some kind of animation that animates smoothly from one view

Not able to connect flutter socket socket_io_client 1.0.1 to nodejs server

**Not able to connect websocket to the nodejs server for websocket connection I'm using socket_io_client: ^1.0.1 library ** void connect(){ IO.Socket socke

Did anyone manage to get the id token from google sign in (Flutter)

I am trying to connect my users with my back end server , i used the example from the official google sign in plugin for flutter : https://pub.dartlang.org/pack

Why my bottom sheet has an awkward white space at the top? Flutter

I am trying to make my ListView of items inside my bottom sheet scrollable. I make it work with DraggableScrollableSheet widget but there's this awkward white s

Flutter VideoPlayerController "setState() or markNeedsBuild() called during build."

I'm playing video and there is no problem but when navigating to another page, console says this. I tried everything that I came up with like check if mounted b

Flutter Hive - how to locate box files

This may be obvious, but can someone please tell me how I can locate my Hive Box file after initialising Hive in a Flutter application, using Android Studio? I

Error "This widget has been unmounted, so the State no longer has a context (and should be considered defunct)" upon SDK and packages upgrade

I got the error "This widget has been unmounted, so the State no longer has a context (and should be considered defunct. Consider canceling any active work duri

Encrypt in php and decrypt in Dart(flutter)

Does anyone have an idea about encrypting response from my php api and decrypting data in local using dart. I'm using flutter for my mobile application. Thank

How can I add shadow to the widget in flutter?

How can I add shadow to the widget like in the picture below? This is my current widget code.

Flutter BottomNavigationBar not working with more than three items

I´ve a problem with the BottomNavigationBar in Flutter (0.6). As soon as I add more then three BottomNavigationBarItems as children, the buttons in the ba