-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Moktadir
authored and
Moktadir
committed
Sep 20, 2023
1 parent
7102996
commit 77916cb
Showing
21 changed files
with
2,356 additions
and
203 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import '../../../modules/example/home-with-restAPI/model/recipes_model.dart'; | ||
import 'my_hive.dart'; | ||
|
||
class HiveAdapters { | ||
static Future<void> registerAll() async { | ||
await MyHive.init(registerAdapters: (hive) { | ||
hive.registerAdapter(RecipesAdapter()); | ||
hive.registerAdapter(ResultsAdapter()); | ||
hive.registerAdapter(TotalTimeTierAdapter()); | ||
hive.registerAdapter(ShowAdapter()); | ||
hive.registerAdapter(SectionsAdapter()); | ||
hive.registerAdapter(ComponentsAdapter()); | ||
hive.registerAdapter(MeasurementsAdapter()); | ||
hive.registerAdapter(UnitAdapter()); | ||
hive.registerAdapter(IngredientAdapter()); | ||
hive.registerAdapter(CompilationsAdapter()); | ||
hive.registerAdapter(TagsAdapter()); | ||
hive.registerAdapter(RenditionsAdapter()); | ||
hive.registerAdapter(NutritionAdapter()); | ||
hive.registerAdapter(PriceAdapter()); | ||
hive.registerAdapter(TopicsAdapter()); | ||
hive.registerAdapter(UserRatingsAdapter()); | ||
hive.registerAdapter(InstructionsAdapter()); | ||
hive.registerAdapter(CreditsAdapter()); | ||
}); | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.