Skip to content

Instantly share code, notes, and snippets.

@mohammadkarbalaee
Last active February 18, 2023 00:16
Show Gist options
  • Save mohammadkarbalaee/172de4b64be723edbdb62eb83bc824b7 to your computer and use it in GitHub Desktop.
Save mohammadkarbalaee/172de4b64be723edbdb62eb83bc824b7 to your computer and use it in GitHub Desktop.
The tips and tricks that I learn throughout the problems that I solve during my mobile development career

Builder with Getx

when you use the Builder widget, it has its own context, therefore the values inside it won't get updated as you expect. Because they are not part of the Getx's widget tree.

Flutter File Picker

As of the day that I am writing this tip, Feb 2023, Flutter File Dialog works flawlessly in both Android and iOS. If the file_picker package does not work for you then give this one a little try. You will not regret it.

Music picking in iOS

music picking on iOS using File Picker flutter package works ok in real devices because they have the Music app, but it does not work on emulators since they dont. so dont panic. just test it on a real device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment