r/FlutterDev • • Feb 24 '24

Discussion 8 must have flutter packages

After building two production apps and several test apps in Flutter, I've gained valuable experience with the framework. Here, I want to share my personal opinion on the ten must-have Flutter packages for every project, including some hidden gems you might not be familiar with yet:

Btw all of these packages were used in my flutter web app https://askrudi.com

Dio

===

https://pub.dev/packages/dio

Every developer utilizing APIs in their app needs this package! It's simple to use yet powerful.

Fancy Shimmer Image

===================

https://pub.dev/packages/fancy_shimmer_image

Are you using `Image.network()` to load images from the web? This package elevates the loading process, giving it a polished and professional look.

Flutter Bloc

============

https://pub.dev/packages/flutter_bloc

State management is probably one of the most discussed and debated topics in the Flutter Dev Community. For me, Flutter Bloc is the easiest to understand while still being very powerful.

Go Router

=========

https://pub.dev/packages/go_router

My favorite routing management package, and probably one of the most widely used too.

Skeletonizer

============

https://pub.dev/packages/skeletonizer

Another loading package, this time for displaying skeleton placeholders while your content is loading, such as text. This package is the best Skeletonizer I know of --- it simply does what's expected.

Back Button Interceptor

=======================

https://pub.dev/packages/back_button_interceptor

Don't want your users to accidentally leave your app if they perform the back gesture on their phone? This package does the job.

Flutter Animate

===============

https://pub.dev/packages/flutter_animate

With a good and easy-to-use syntax, this package allows you to craft smooth animations quickly.

I hope this list is hopeful, especially for those starting out!

159 Upvotes

26 comments sorted by

18

u/tastethesaltinthesea Feb 24 '24

Great list! Curious if you have tried Riverpod and how it compares to Bloc?

0

u/[deleted] Feb 24 '24

[deleted]

2

u/gurselaksel Feb 24 '24

This. I tried anrea bizotto's tutorials but it was like too complicated. In bloc everything seems more smooth and easy

3

u/[deleted] Feb 24 '24

[removed] — view removed comment

4

u/aaulia Feb 25 '24

Honestly one of the things set BLoC apart from other state management package is that its Documentation is "enough" to get started and grasp its concept.

2

u/tommytucker7182 Feb 25 '24

...and is kept up to date. Looking at you riverpod

6

u/tommytucker7182 Feb 24 '24

Sorry to hijack, I learned core concepts from some of the videos on this BloC playlist: https://www.youtube.com/playlist?list=PLptHs0ZDJKt_T-oNj_6Q98v-tBnVf-S_o

10

u/amplifyoucan Feb 24 '24

We're using most of these! Bloc is killer for state management, no brainier there. Go_router is another essential one.

I'm guilty of using CircularProgressIndicators for EVERYTHING, so it's great to see the image shimmer and skeletonizer packages in here! I'm going to start using those to make my pages look better while the data is loading

3

u/Farz7 Feb 25 '24

I must add riverpod , flutter_hooks , pretty dio logger , cached_network_image , flutter_screen_utils, to this , otherwise great list

3

u/Civil_Tough_1325 Feb 25 '24

I'm a little confused. Which one is better for route management: RouteMaster or go_router?

5

u/[deleted] Feb 24 '24

Great list. But for State Management I‘ll go with watch_it, its so simple yet powerful. The learning curve is almost zero

4

u/whyreyouthewayyouare Feb 24 '24

Awesome! As someone who is starting, this is very useful. Saved.

2

u/SeanPizzaSpark Feb 25 '24 edited Feb 25 '24

Suggestions for storage? Online and offline. I'm trying to look at Drift and it looks good

1

u/Zopenzop Mar 22 '24

I used isar and shared preferences for offline storage and mongo for online

0

u/[deleted] Feb 25 '24

[deleted]

1

u/SeanPizzaSpark Feb 25 '24

That project is abandoned now right?

0

u/[deleted] Feb 25 '24

[deleted]

2

u/SeanPizzaSpark Feb 25 '24

You might want to check out drift. It's an SQL based storage though but the author is very helpful and kind to beginners joining their discord

2

u/ImGeorges Feb 25 '24

Curious what are the advantages of using that back button interceptor vs PopScope?

1

u/PATXS Mar 02 '24

i was using a nested navigation package recently that had its own overridden back button logic, and i used back button interceptor to quickly add my own back button logic on top of it throughout the whole app.

it was a very quick and easy solution. but in general the package seems like it's best for workarounds or niche cases in which using a willpopscope is not so viable or takes more effort

2

u/tommytucker7182 Feb 24 '24

Nice one, thanks! Im using go_router and flutter_bloc and agree they are both excellent. A few I didnt know off here... Ill take a peep at a few of them! cheers!

2

u/MeltdownInteractive Feb 24 '24

Nice list thanks!

Funny enough I switched from using Image.network this week to using Dio to download my images to get around cert issues (we have a local development microservice running that serves up watermarked images), Dio already had the bad cert callback thingy as it was being used for all our API calls.

But fancy shimmer looks good for the animations, will check it out!

2

u/TJGhinder Feb 24 '24

This right here is THE list 🙌

1

u/NumberFancy7082 Oct 05 '24

the new annotated riverpod is way superior. Bloc has some extra classes/functions in it

0

u/[deleted] Feb 24 '24

[deleted]

2

u/aaulia Feb 25 '24

CMIIW, but blurhash required that the backend supply the "hash". I would love if it become the norm/standard, but alas.

2

u/[deleted] Feb 26 '24

[removed] — view removed comment

1

u/NumberFancy7082 Oct 05 '24

the new annotated riverpod is way superior.