bible_sqlite

Exelente package para ter a bĂ­blia sagrada integrada ao seu aplicativo.

with no context

Supported Platforms

  • Android
  • IOS

How to Use

# add this line to your dependencies
bible_sqlite: ^1.0.2
import 'package:bible_sqlite/bible_sqlite.dart';
BibleSqlite _bibleSqlite = BibleSqlite();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Container(
        child: FutureBuilder<List<BookModel>>(
          future: _bibleSqlite.getBook(),
          builder: (_, snapshot) {
            switch (snapshot.connectionState) {
              case ConnectionState.none:
                return Center(
                  child: Text('Carregando dados...'),
                );
              case ConnectionState.waiting:
                return Center(
                  child: Text('Carregando dados...'),
                );
              case ConnectionState.active:
                return Center(
                  child: Text('Carregando dados...'),
                );
              case ConnectionState.done:
                return ListView.builder(
                  itemCount: snapshot.data!.length,
                  itemBuilder: (_, index) {
                    return Text(snapshot.data![index].name);
                  },
                );
            }
          },
        ),
      ),
    );
  }

List Books


FutureBuilder<List<BookModel>>(
          future: _bibleSqlite.getBook(),
          builder: (_, snapshot) {
            switch (snapshot.connectionState) {
              case ConnectionState.none:
                return Center(
                  child: Text('Carregando dados...'),
                );
              case ConnectionState.waiting:
                return Center(
                  child: Text('Carregando dados...'),
                );
              case ConnectionState.active:
                return Center(
                  child: Text('Carregando dados...'),
                );
              case ConnectionState.done:
                return ListView.builder(
                  itemCount: snapshot.data!.length,
                  itemBuilder: (_, index) {
                    return Text(snapshot.data![index].name);
                  },
                );
            }
          },
        ),

Methods

| Methods | description | Model |
| --------------- | ------------------------------------------------------------------ |------------ |
| getBooks() | return all books | BookModel | | getVerse() | return all verses | VerseModel | | getTestament() | return all testaments | TestamentModel | | getMetadata() | return infomation bible | MetadataModel |

Preview Images

Libraries

bible_respository
bible_sqlite
book_dml
book_model
databasehelper
metadata_dml
metadata_model
testament_dml
testament_model
verse_dml
verse_model