All Questions (2,351 questions)



How to disable multi-touch in mobile application using flutter

Posted by Rohit Kumar | Updated on

Want to disable multi-touch in mobile application using flutter? Create instance of OnlyOnePointerRecognizerWidget widget and pass any Widget as child to it. OnlyOnePointerRecognizerWidget will recognize only one pointer.

How to open Apple Maps using Flutter/Dart?

Posted by Editorial Staff | Updated on

Want to open Apple Maps using Flutter/Dart? You could try to use a Map Launcher plugin to launch apple/google maps depending on a platform.

How to do nested navigation in Flutter

Posted by Andre Scott | Updated on

Want to do nested navigation in Flutter. Here is a simple example that even supports popping to the first screen with a tab bar.

How to implement vibration with Flutter for both Android and iOS?

Posted by Editorial Staff | Updated on

Want to implement vibration with Flutter for both Android and iOS? I have the same problem. The below code works fine on iOS but not on Android for HapticFeedback.vibrate();

How to animate transition to named route in flutter

Posted by Ramesh Singh | Updated on

Want to animate transition to named route in flutter You need to use onGenerateRoute in your MaterialApp widget.

How to get height of a Widget using its GlobalKey in flutter

Posted by Jessica Taylor | Updated on

In this example, I will share how to get height of a Widget using its GlobalKey in flutter. You need to assign that key to a widget using super in the widget constructor. Not add …

How to change the app bar title in flutter

Posted by Andre Scott | Updated on

Want to change the app bar title in flutter? You could also split your code, assuming that your database fetch will be asynchronous.

How to change the app bar title in flutter

Posted by Jessica Taylor | Updated on

Want to change the app bar title in flutter? You could also split your code, assuming that your database fetch will be asynchronous.

How to generate a private/public key pair to encrypt messages in Flutter

Posted by Andre Scott | Updated on

Want to generate a private/public key pair to encrypt messages in Flutter I started using some sample code for generating public key / private key pair using pointy castles. After a long time of debugging …

Flutter Image object to ImageProvider

Posted by Pinki | Updated on

Flutter Image object to ImageProvider. Please Use Uint8List and MemoryImage, see code snippet. You can copy paste run full code below:

How to delete a field in Firestore document with flutter

Posted by Jennifer | Updated on

Want to delete a field in Firestore document with flutter. In Order to delete a particular field from a cloud firestore document – make sure you are using Plugin version 0.8.0 or Above. Now a …

How to wait for a future to complete in Flutter widget test?

Posted by Editorial Staff | Updated on

Want to wait for a future to complete in Flutter widget test? Use the below example code to wait for a future to complete in Flutter widget test.

Animate change on height when child of container renders

Posted by Editorial Staff | Updated on

Animate change on height when child of container renders. In the end I just had to use AnimatedSize. It replicates exactly the animation that I want.

How to put a card into a sliver in flutter app bar?

Posted by Jennifer | Updated on

Want to put a card into a sliver in flutter app bar? You can do it using SliverPersistentHeaderDelegate and Stack widget, check my sample :

How to customize Slider widget in Flutter?

Posted by Jessica Taylor | Updated on

Want to customize Slider widget in Flutter? Use the below example to customize Slider widget in Flutter. Here is an example: