bible_core 0.1.0
bible_core: ^0.1.0 copied to clipboard
Core Bible controller, parsing, sources, and offline cache.
bible_core #
Core Bible controller for Flutter/Dart apps: URL-based sources, offline caching, lazy chapter parsing, and search.
Usage #
import 'package:bible_core/bible_core.dart';
final controller = BibleController(
sources: {
'it': 'https://api.getbible.net/v2/riveduta.json',
'ar': 'https://firebasestorage.googleapis.com/v0/b/milano-af4f2.appspot.com/o/Arabic%20Bible.json?alt=media&token=70aa1327-857e-4ed8-b823-4060c0db97bb',
},
initialLanguage: 'ar',
);
await controller.loadBible();
final books = controller.books;
final verses = controller.chapterVerses(books.first, 1);
Features #
- Load Bible JSON from URLs
- Persist cache with offline fallback
- Lazy per-chapter verse materialization
- Simple search across verses
License #
MIT