How to implement user tagging in flutter?

Posted by Ramesh Singh | Updated on | Flutter


Want to implement user tagging in flutter? Use the below example code to implement user tagging in flutter.

How to delete item list using pop up menu in flutter?

Posted by Ramesh Singh | Updated on | Flutter


If you want to delete item list using pop up menu in flutter? Add a callback function to your PopUpMenu class: Then when creating it in your original class: General rule of thumb in Flutter …

location.getlocation() gives casting error on android flutter

Posted by Ramesh Singh | Updated on | Flutter


location.getlocation() gives casting error on android flutter. An issue should be raised regarding this at the plugin location to either return proper results or throw appropriate errors. You can try check for permission and then …

Flutter showDialog with navigator key rather than passing context

Posted by Ramesh Singh | Updated on | Flutter


Flutter showDialog with navigator key rather than passing context. You can make use of InheritedWidget here. Make a InheritedWidget the root for your application which holds a navigator key. Then you can pass any context …

How to check if asset exists in flutter?

Posted by Ramesh Singh | Updated on | Flutter


If you want to check if asset exists in flutter? AssetBundle (as returned by rootBundle) abstracts over different ways of loading assets (local file, network) and there is no general way of checking if it …

Flutter Switch onChanged Not Changing

Posted by Ramesh Singh | Updated on | Flutter


Flutter Switch onChanged Not Changing. If you want to save it and use in another class or if you want to show latest state for everytime you load you can save the state in a …

Switch case with multiple values for the same case

Posted by Ramesh Singh | Updated on | Flutter


Switch case with multiple values for the same case. Use the below example code to add the switch case with multiple values for the same case:

How to maintain Flutter Global BloC state using Provider on Hot Reload?

Posted by Ramesh Singh | Updated on | Flutter


If you want to maintain Flutter Global BloC state using Provider on Hot Reload. I was facing the same problem. Inherited widgets make it hard disposing bloc’s resources. Stateful widget, on the other hand, allows …

Offline Face Recognition On Flutter

Posted by Ramesh Singh | Updated on | Flutter


Offline Face Recognition On Flutter. Firebase ML Kit’s face detection API, an on-device API, works even when there‚Äôs no network connection. Note, the functionality offered is face detection, not face recognition.

Swift presentViewController

Posted by Ramesh Singh | Updated on | Swift


Swift presentViewController. Solved the black screen by adding a navigation controller and setting the second view controller as rootVC.

Convenient way to share image + text + url in flutter

Posted by Ramesh Singh | Updated on | Flutter


Convenient way to share image + text + url in flutter. Simple Share seems to be what you’re looking for:

Flutter AnimatedSize works in one direction only

Posted by Ramesh Singh | Updated on | Flutter


Flutter AnimatedSize works in one direction only. AnimatedContainer is what you are looking for no need for AnimatedSize.

How to decode a token in dart?

Posted by Ramesh Singh | Updated on | Dart


If you want to decode a token in dart? If you is interested in get the public part of token basically you have to split the token by ‘.’ and decode the second part with …

Import dart file outside lib directory

Posted by Ramesh Singh | Updated on | Flutter


Import dart file outside lib directory. Importing files from outside lib/ is not supposed to work. This would prevent publishing packages to pub.dartlang.org because only lib/ and bin/ are downloaded when added to dependencies. What …

Tracking screen views in Flutter with Firebase Analytics

Posted by Ramesh Singh | Updated on | Firebase Flutter


Tracking screen views in Flutter with Firebase Analytics. The answer is: it depends. For a StatelessWidget, it might be suitable to have an Analytics event in build(), but only if the parent widgets are not …