get_it
freezed
Our great sponsors
get_it | freezed | |
---|---|---|
30 | 43 | |
1,256 | 1,810 | |
2.2% | - | |
7.1 | 9.0 | |
9 days ago | 2 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
-
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.
-
Journey to the riverpod for my flutter app.
After some research, I found the get_it looked promising. I replaced MultiProvider with getIt singletons at the application start:
freezed
-
Dart 3.3
There is the `sealed` class modifier which allows for exhaustive matching on possible types: https://dart.dev/language/class-modifiers#sealed
There's also a package called freezed which offers similar utility (you might already be familiar with this seeing as you mentioned pattern matching): https://pub.dev/packages/freezed
I recall there being a reason unions aren't generally implemented, though I'm not sure where I read it. It was to do with union types being unnecessarily complex for the compiler and the code they tend to produce, at no real benefit to the programmer or the resulting program. Go's lack of unions is essentially based around the same reasoning.
-
Fluvera is a Flutter SDUI package designed to simplify the process of building user interfaces (UIs) based on JSON server responses.
Interesting. May I ask how this differs from something like Freezed https://pub.dev/packages/freezed and its from/ToJson features ? I haven't used it yet, but I'm just curious about the concept and use of these sort of packages.
-
Dart 3.0: Best New Features & Why You Should Care
The official site does show what you can use it for but to explain a bit more, it helps you work faster.
-
🎉 Introducing MODDDELS: A Powerful Package for Robust, Self-Validated Models in Flutter & Dart
One rather minor suggestion: it took me a while to understand exactly what the benefits were, but the example shown on this page of the docs summarized it well. I would suggest showing an example like that at the top of the main Readme and first page of the site, before or right after the motivation section, similar to how Freezed immediately shows its value proposition.
-
Maximizing Your Flutter App's Performance with (Async)NotifierProvider, Freezed & Riverpod Code Generators
Read more on what you can do with Freezed.
-
Class Constructor Plugins- Are there any?
freezed on pub.dev
-
Firestore partial doc updates and type safety
We use freezed for our models, and then use withConverter in the firestore SDK to easily translate between firestore and our models... however we run into issues with concurrent updates to documents.
-
🚀 Building a Fullstack App with dart_frog and Flutter in a Monorepo - Part 2
Once the package has been created, we will install freezed for JSON serialization and value equality , as this library provides helpful tools for these tasks. We will use json_serializable for JSON serialization. To install freezed and freezed_annotation, open your terminal inside the models package and use the command:
-
Flutter Production Boilerplate and tutorials on Medium
Data class: freezed
-
Is 'Freezed' code generator worth the boilerplate?
I've recently been exploring a codebase which is heavily using Freezed with Bloc. The resulting code base is almost an entirely different language altogether, and comes with almost triple the files of a non-freezed codebase.
What are some alternatives?
getx - Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
json_serializable.dart - Generates utilities to aid in serializing to/from JSON.
riverpod - A reactive caching and data-binding framework. Riverpod makes working with asynchronous code a breeze.
bloc - A predictable state management library that helps implement the BLoC design pattern
flutter_gen - The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
flutter_getx_timetracker - Timetracker created with Flutter and GetX framework
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond
modular - A smart project structure
flutter-fake-data-factory-pattern
MobX - Simple, scalable state management.
language - Design of the Dart language