Skip to content

Update contacts tutorial to GenerateAdapters - #4

Open
AzazelSensei wants to merge 1 commit into
IO-Design-Team:masterfrom
AzazelSensei:docs/contacts-generate-adapters
Open

Update contacts tutorial to GenerateAdapters#4
AzazelSensei wants to merge 1 commit into
IO-Design-Team:masterfrom
AzazelSensei:docs/contacts-generate-adapters

Conversation

@AzazelSensei

@AzazelSensei AzazelSensei commented Aug 13, 2026

Copy link
Copy Markdown

The contacts tutorial was still teaching @HiveType on a mutable Contact class. That's the old Hive style, which is why this section is hidden.

I rewrote it around an immutable model and GenerateAdapters, then unhid the Flutter tutorials section and the samples link.

Dark mode, favorite books, and sketchpad don't use generated adapters (primitives or a manual TypeAdapter), so I left their text alone.

Matching sample: IO-Design-Team/hive_ce_samples#1

IO-Design-Team/hive_ce#236

Hive CE generates adapters from an annotation, so the tutorial
should not teach @HiveType on mutable models.

Also unhide the Flutter tutorials and samples link.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant