On this page
A learner revising anatomy terms or driving theory needs to trust what a score means. This flashcards brief separates self-rated study from a marked quiz and makes the review schedule inspectable. The first version should let someone write their own deck, finish a session and recover its history after reopening, without disguising an arbitrary scheduling rule as validated learning science.
Screens
- Decks: Create topic collections and inspect the number of cards ready for review.
- Study: Reveal an answer and record an explicit self-assessment.
- Quiz: Submit answers against a declared marking rule.
- Statistics: Inspect dated attempts, scores and the next review dates.
Data model
| Table | Key fields | Purpose |
|---|---|---|
| decks | id (uuid), name (text), created_at (timestamptz) | Group learner-authored cards without requiring public publishing or an account. |
| cards | id (uuid), deck_id (uuid), front (text), back (text), active (bool) | Store the current prompt and answer while allowing an old card to be retired. |
| sessions | id (uuid), deck_id (uuid), mode (text), started_at (timestamptz), completed_at (timestamptz) | Separate study sessions from quizzes so unlike results are not combined. |
| reviews | id (uuid), session_id (uuid), card_id (uuid), rating (text), correct (bool), reviewed_at (timestamptz) | Keep dated outcomes, with correctness nullable for self-rated study. |
| review_schedule | card_id (uuid), due_on (date), rule_version (text), interval_days (int) | Expose the owner-approved interval rule and support reproducible due counts. |
A personal flashcard library can remain entirely on the device; do not upload its questions simply because sharing might be useful later. If synchronized decks are requested, assign an owner and enforce backend row-level security for decks, cards, sessions and reviews. Shared read access must not grant permission to rewrite another learner’s outcomes. Define whether deleting a deck removes its history or preserves an anonymized aggregate, and make that choice visible before destructive actions.
Native features
Flashcards need persistent review progress, an optional study reminder and a way to hear a card when pronunciation is part of the deck. Android TextToSpeech or Apple's speech synthesis can read explicitly selected text; voice availability should have a silent fallback. Room and SwiftData can keep card content and review history available during a commute without a connection. UserNotifications should remind the learner about study, not claim a streak has already been earned. If audio is outside the initial scope, keep the reveal-and-rate loop complete before adding playback controls.
Android notes (Kotlin and Jetpack Compose)
Use a LazyColumn with deck IDs as stable keys and a focused Compose review screen for one card at a time. Keep front, revealed answer and submitted rating as distinct ViewModel states so rotation cannot accidentally reveal or rate the next card. A Room transaction should record the review event and update its next-due value together. DataStore can hold the learner's preferred reminder time or text size, not the review log. On an Android phone, reveal a long answer, rotate, then rapidly tap a rating twice. Advance once and inspect that exactly one review event belongs to that card.
iPhone notes (Swift and SwiftUI)
Create a NavigationStack from deck List to study session, with accessible buttons announcing whether they reveal an answer or grade recall. SwiftData can persist review events and deck edits, while the current card identity stays separate from its list position. Present reminder settings in a sheet with detents and request UserNotifications only after the learner chooses a schedule. If speech is enabled, stop playback when leaving the card. On an iPhone, study with airplane mode enabled, terminate after rating several cards, and reopen the deck. Verify the remaining queue excludes completed reviews and that deleting a deck cancels its optional reminder.
Copy-paste prompt
Build a flashcards app for Android with Decks, Study, Quiz and Statistics. Let me create cards locally and keep learning history across restarts. Ask for the initial review interval table, timezone, daily reminder preference and whether quizzes accept case or whitespace differences. Model decks, cards, sessions, reviews and per-card schedules; retain the rule version used for each scheduling decision. Keep self-assessment distinct from objective quiz correctness. Present an understandable next-review date rather than an unexplained mastery percentage. Include loading, no decks, an empty deck, failed saving, interrupted sessions and reminder-permission-denied states. Do not claim a learning algorithm has proven educational results. Require a real device check that creates three original cards, studies them, completes a quiz and reopens the app with matching outcomes. A rapid double submission must not inflate the score or schedule the same review twice.
Opens Apirex with this prompt in the box. Pick the Android · Kotlin tab before you send.
Acceptance test
Exercise deck changes during an unfinished session: retire one card, edit another answer and resume using a documented snapshot or version policy. The score must not silently mix the original question with a replacement answer key. An empty deck should explain how to add the first card rather than opening a quiz with a zero-denominator percentage. After a failed review write, keep the result unconfirmed and allow a retry against the same attempt identifier. Test a session crossing midnight using the configured review timezone, then verify the history date and next due date remain explainable. Deleting a deck should follow the chosen history policy without leaving orphan review records.
- Create a geology deck with three original question-and-answer pairs and confirm the saved card count is three.
- Study all three cards, assigning different self-ratings, and inspect the next-review dates produced by the declared interval rules.
- Take a quiz with two correct answers and one deliberate mistake; verify the displayed score follows the approved marking policy.
- Reopen the application and inspect the dated session history, saved answers and due-card count without entering the deck again.
- Repeat a submit action rapidly while offline and verify only the intended attempt is recorded; decline reminders and confirm a new study session remains available.
Frequently asked questions
Does a self-rated answer belong in the quiz score?
Keep those measures separate because revealing an answer and rating recall is not the same as submitting a marked response. Statistics should label study ratings and quiz correctness independently.
How should the first spaced-review rule be chosen?
Ask the owner for explicit intervals and what each rating does to the next date. Record that rule version with the outcome so changing the policy later does not make old results inexplicable.
Can I import a commercial textbook’s cards?
Only if the owner has permission to use and distribute that material. Start with original or licensed questions, and define the import format separately from the core study journey.
Build this blueprint
The blueprint prompt, ready for your platform. Edit anything before you send it.
Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.