get_it
riverpod
get_it | riverpod | |
---|---|---|
31 | 72 | |
1,383 | 6,533 | |
0.4% | 1.6% | |
8.0 | 9.2 | |
3 months ago | 16 days ago | |
Dart | Dart | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
get_it
-
Goodbye, Singleton! Should We Implement this in Flutter?
As an alternative, we can use packages such as [get_it](https://pub.dev/packages/get_it), which makes it easy to register a lazy singleton:
-
Question about new State Management package
It's actually quite an old lib at its heart, it's the successor to get_it which is 5 yrs old and has 3500+ likes https://pub.dev/packages/get_it
-
[Research] Your Flutter Stack
Dependency injection: https://pub.dev/packages/get_it
- Show me the way: GetX Vs Stacked Vs Riverpod
-
Am I super dumb or is Riverpod SO complicated?
No it is not, it had a release 3 weeks ago: https://github.com/fluttercommunity/get_it/tags so not sure what you are talking about...
-
Reorderable listview help!
Use a library like https://pub.dev/packages/get_it to save the list in a state object. When ever you get the list again, you get it from the state object. I don't know the library because I use riverpod, but it should be easy to use.
-
🚀 Building a Fullstack App with dart_frog and Flutter in a Monorepo - Part 5
Setting up dependency injection using injectable and get_it
-
Flutter Production Boilerplate and tutorials on Medium
DI: get_it, injectable
-
Dependency Injection recommendation?
I personally use get_it and injectable.
-
🎉 honeycomb v0.9.0 released
First thing first, I want to describe how it compares to the most popular get_it.
riverpod
-
Maintain and Extend Code Easily with Clean Architecture for Flutter
View Models: State management solutions using GetX, BLoC, or Riverpod.
-
Riverpod Flutter: A Beginner's Guide
This is just the beginning of what you can do. For more information and advanced usage, check out the official Riverpod documentation.
-
Streaming Real-Time Data in Flutter: A Step-by-Step Guide for Developers
Riverpod Package: Add the Riverpod package to manage state efficiently.
-
Flutter & Riverpod | How to Maintain the state of NavigationBar across tabs
According to this Q&A answered by Remi Rousselet, the author of Riverpod:
-
Goodbye, Singleton! Should We Implement this in Flutter?
https://pub.dev/packages/get_it https://riverpod.dev/ https://www.studysmarter.co.uk/ https://resocoder.com/
-
Build a Personal Target Tracking Application with Flutter Riverpod and Strapi GraphQL
Before starting the tutorial on developing a personal target tracking application with Flutter, Riverpod, Strapi, and GraphQL, ensure you meet the following requirements:
-
Ask HN: What to use to build an iOS and Android app?
It may also look a bit boilerplate heavy but with the VS Code add in and code snippets it’s actually quite ergonomic to write. Just don’t attempt to type it all out by hand.
If you decide to give it a try there are some packages I’d recommend:
- Follow the official getting started: https://docs.flutter.dev/get-started/install
- State management: https://riverpod.dev/ is easy enough and quite powerful. The official docs still recommend Provider, but that’s basically deprecated. Riverpod is an improved Provider by the same maintainer
- Go router https://pub.dev/packages/go_router is the standard for routing
- I used sqflite for persisting local state: https://pub.dev/packages/sqflite
The setup may of your dev environment may take a bit (the mobile SDKs are quite big to download) but after that it’s quite smooth.
Flutter is “inspired” by react so you should feel familiar with the widget lifecycle. Unlike modern react though it uses class based components and when using stateful widgets (components) it’s split into two separate widgets.
-
Exploring Speed Up Mobile App Development Approaches
From a library standpoint, I would recommend https://riverpod.dev over any other state management libraries for productivity purposes.
-
Constructor Tear-Off with Riverpod Family
I have the following code. When I hot reload I get an error like this. Apparently this is fixed in dart 3 and Remi mentions a solve here. I am unclear how to refactor my code to achieve the solve without upgrading Flutter to an unstable version (which I've tried and cannot use because of certain render issues).
-
How use riverpod_generator on a class ? my todo property doesn't refresh on UI
I saw this official example but it doesn't use riverpod_generator : https://github.com/rrousselGit/riverpod/blob/master/examples/todos/lib/todo.dart
What are some alternatives?
getx - Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
bloc - A predictable state management library that helps implement the BLoC design pattern
MobX - Simple, scalable state management.
flutter_getx_timetracker - Timetracker created with Flutter and GetX framework
flutter_hooks - React hooks for Flutter. Hooks are a new kind of object that manages a Widget life-cycles. They are used to increase code sharing between widgets and as a complete replacement for StatefulWidget.