搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。