bible_sqlite 1.0.2 copy "bible_sqlite: ^1.0.2" to clipboard
bible_sqlite: ^1.0.2 copied to clipboard

O package bible_sqlite é a forma mais simples para ter a bíblia sagrada de forma local no seu aplicativo.

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 #

17
likes
120
pub points
40%
popularity

Publisher

unverified uploader

O package bible_sqlite é a forma mais simples para ter a bíblia sagrada de forma local no seu aplicativo.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, path, sqflite

More

Packages that depend on bible_sqlite