A multiple-choice learning app. Question banks are written and published on Windows, and studied on Android (iOS later), in practice mode with hints or timed mock tests.
- Learners: practice (instant feedback, hints, explanations), mock tests (timer, question grid, flags, no hints), pause and resume, progress by section, bookmarks, "report a problem", progress backup.
- Authors (Windows): a three-pane editor for banks, sections, questions and mock test papers, with a phone preview, CSV and image import, live reload when files change, and one-button publishing to GitHub.
- Question banks are YAML files in a separate repo,
lectrical/question-banks. Its
AGENTS.mdexplains the format to people, Claude and Gemini.
Design: docs/superpowers/specs/2026-11-29-lectrical-learn-design.md
- Install the Flutter SDK (stable), for example
git clone https://github.com/flutter/flutter.git -b stable C:\dev\flutter, and addC:\dev\flutter\binto your user PATH. - Install Visual Studio 2026 (or 2022) with the Desktop development with C++ workload.
- Install Android Studio, open it once and finish the setup wizard (it installs
the Android SDK). Then run
flutter doctor --android-licenses. - Point Flutter at Android Studio's Java:
flutter config --jdk-dir "C:\Program Files\Android\Android Studio\jbr". - Turn on Developer Mode (Settings → System → For developers). Flutter needs it to build Windows apps with plugins.
- On the phone, turn on Developer options and USB debugging, and plug it in.
- Run
flutter doctor. Everything you need should show ✓.
flutter pub get
dart run build_runner build --delete-conflicting-outputs # after changing the database tables
flutter run -d windows # Windows, with the Author area
flutter run # the connected phone
flutter test # app tests
cd packages/bank_format; dart test; cd ../.. # bank format tests
flutter build apk --release # Android release build
flutter build windows --release # Windows release buildCheck a banks repo from the command line:
cd packages/bank_format
dart run bank_format:validate C:\Users\<you>\Documents\Lectrical\question-banks --fix-idstool/pack_starter.dart <banks-repo> refreshes the starter bank built into the
app (assets/starter_banks.zip).
Every Android build, debug and release, is signed with one upload key, so updates install over the existing app without wiping its data. Create it once and choose your own password:
New-Item -ItemType Directory -Force "$env:USERPROFILE\.lectrical"
& "C:\Program Files\Android\Android Studio\jbr\bin\keytool.exe" -genkey -v -keystore "$env:USERPROFILE\.lectrical\upload-keystore.jks" -keyalg RSA -keysize 2048 -validity 10000 -alias uploadThen create android/key.properties. It is git-ignored:
storeFile=C:/Users/<you>/.lectrical/upload-keystore.jks
storePassword=<password>
keyAlias=upload
keyPassword=<password>
Back up the .jks file and its password. Without them, an update means
uninstalling the app first, which deletes the phone's progress. Android builds
refuse to run until key.properties exists, so nothing can be signed with a
different key by accident.
- On Windows, open Multiple choice → Author → Publishing settings.
- Set the banks repo URL, the branch and the local folder
(default
Documents\Lectrical\question-banks). - Paste a GitHub fine-grained token with Contents: read and write on the banks repo only. It is stored in Windows' secure storage, never in a file or in Git's settings. Press Test connection.
- Edit questions in the Author area, or let Claude or Gemini edit the files. The app reloads when files change.
- Press Publish. It is disabled while any bank has problems. If someone else pushed a clashing change, the app stops and says so; it never force-pushes.
- On the phone: Settings → Update banks. The phone also checks once a day.
Scores and history live only on each device. Use Settings → Export progress to save them to a file, and Import progress to restore them.
See AGENTS.md: create lib/modules/<name>/, implement
LearningModule, and add one line to lib/modules/registry.dart.
- iOS: builds need macOS, so use a cloud build service such as Codemagic or GitHub Actions, plus an Apple Developer account.
- Play Store publishing, other people's bank repos, and progress sync.