搜索插件、代码仓与 APP 分类

插件详情v4.4.0

books_finder

一个用于帮助在 Google 图书 API 中搜索书籍的库

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
116
喜欢数
25
Pub 分数
160

安装插件

flutter pub add books_finder

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Books_Finder 是一个 Flutter/Dart 包,旨在简化与 Google 书籍 API 的集成。它提供了一个简洁直观的接口,用于按书名、作者或 ISBN 搜索书籍,获取详细的书籍信息,并高效处理响应。该包注重易用性,将复杂的 API 交互抽象为简单的方法,非常适合开发阅读应用、图书馆或教育工具的开发者使用。该包支持 Android、iOS、Web、macOS、Windows 和 Linux 多个平台,确保广泛的兼容性。

适合场景

  • 按书名或作者搜索书籍
  • 获取书籍详情,如描述和封面
  • 将图书搜索功能集成到阅读应用中
  • 构建图书馆管理系统
  • 创建教育或研究工具

主要特点

  • Google Books 的简单 API 包装器
  • 支持多个搜索参数
  • 跨平台兼容性
  • 高效的响应处理
  • 内置错误管理
  • 轻量且易于集成

适合对象

  • 开发与书籍相关的应用程序的开发者
  • 教育平台创建者
  • 库应用程序开发者
  • API 初学者寻求简单集成

使用建议

  • 需要互联网连接以进行API调用
  • 取决于 Google 图书 API 的可用性
  • 高流量应用中可能需要处理速率限制
  • 仅限 Google 图书数据源

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

books_finder

A library to help on the search for books on the Google Books Api.

Usage

First of all, import the library:

import 'package:books_finder/books_finder.dart';
Querying books

To query books, just call the function queryBooks:

final List<Book> books = await queryBooks(
 'twilight',
 queryType: QueryType.intitle,
 maxResults: 3,
 printType: PrintType.books,
 orderBy: OrderBy.relevance,
);

You can change a few parameters to make your query more specific:

Parameter Description Nullable
queryType Keywords to search in particular fields Yes
maxResults Set the max amount of results No
startIndex for pagination No
langRestrict Retrict the query to a specific language Yes
orderBy Order the query by newest or relevance Yes
printType Filter by books, magazines or both Yes
reschemeImageLinks Rescheme image urls from http to https No
Books

If you already have a Book object, you can call book.info to get all the book infos:

final info = book.info;
Parameter Description
title (String) Title of the book
subtitle (String) The subtile of the book
authors (List<String>) All the authors names
publisher (String) The publisher name
publishedDate (DateTime) The date it was published
rawPublishedDate (String) The date it was published in raw format
description (String) Description of the book
pageCount (int) The amount of pages
categories (List<String>) The categories the book is in
averageRating (double) The average rating of the book
ratingsCount (int) The amount of people that rated it
maturityRating (String) The maturity rating
contentVersion (String) The version of the content
industryIdentifier (List<IndustryIdentifier>) The identifiers of the book (isbn)
imageLinks (List<Map<String, Uri>>) The links with the avaiable image resources
language (String) The language code of the book

Acknowledgements

Issues and feedback

Please file issues, bugs, or feature requests in our issue tracker.

To contribute a change to this plugin open a pull request.

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。