Skip to main content

book_view_flutter 0.0.1+1 copy "book_view_flutter: ^0.0.1+1" to clipboard
book_view_flutter: ^0.0.1+1 copied to clipboard

A premium, realistic book card widget for Flutter with a 3D-like spine effect, customizable shadows, and deep theming support.

πŸ“š BookView Flutter #

A premium, realistic book card widget for Flutter that brings the physical feel of a library to your digital applications. Features a 3D-like spine effect, customizable shadows, and deep theming support.


πŸ“Έ Preview #

BookView Preview

Realistic book design with 3D spine and custom badges


✨ Features #

  • Realistic 3D Binding: Includes a subtle spine gradient and vertical details for a professional look.
  • Enhanced Depth: Built-in multi-layered shadows for an authentic "card-on-table" feel.
  • Premium Themes: Customize everything from spine colors and border radius to text styles and badge designs.
  • Offline Ready: Powered by cached_network_image for smooth performance and cached covers.
  • Smart Badging: Easily show prices or "Purchased" status with elegant overlays.

πŸš€ Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  book_view_flutter: ^0.0.1

πŸ“– Usage #

Simple Usage #

import 'package:book_view_flutter/book_view_flutter.dart';

BookView(
  imageUrl: 'https://example.com/cover.jpg',
  title: 'Clean Architecture',
  author: 'Robert C. Martin',
  priceLabel: '2500 F',
  onTap: () => print('Opening book...'),
)

Advanced Theming #

BookView(
  imageUrl: '...',
  title: '...',
  author: '...',
  theme: BookViewTheme(
    borderRadius: 8.0,
    purchasedBadgeColor: Colors.teal,
    titleStyle: TextStyle(fontWeight: FontWeight.w900, fontSize: 14),
    showFrameLine: true,
    frameLineColor: Colors.white54,
    spineGradient: LinearGradient(
       colors: [Colors.white24, Colors.black38],
    ),
  ),
)

πŸ›  Customization Options #

BookView Widget Parameters #

Parameter Type Description
imageUrl String The cover image URL (automatic caching).
title String Book title displayed below the cover.
author String Author name displayed below the title.
priceLabel String? Text for the price overlay.
isPurchased bool Displays "Livre achetΓ©" badge if true.
theme BookViewTheme Style customization object.
width double Width of the book cover (default: 120).
height double Height of the book cover (default: 180).

BookViewTheme Parameters #

Parameter Type Default Description
spineGradient Gradient Linear (white/black) Gradient effect on the left side.
spineLineWidth double 0.5 Width of the decorative vertical line.
spineLineColor Color white (30%) Color of the decorative vertical line.
showFrameLine bool true Toggles the decorative inner border.
frameLineColor Color white (50%) Color of the decorative inner border.
borderRadius double 2.0 Radius for the book corners.
shadowColor Color black (25%) Color of the card shadow.
purchasedBadgeColor Color Gold Background color for purchased badge.
priceBadgeColor Color Black (60%) Background color for price badge.

🀝 Contributing #

Contributions are welcome! Feel free to open issues or submit pull requests.

πŸ“„ License #

MIT License - Copyright (c) 2026 Innocent Konan

1
likes
0
points
81
downloads

Publisher

unverified uploader

Weekly Downloads

A premium, realistic book card widget for Flutter with a 3D-like spine effect, customizable shadows, and deep theming support.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cached_network_image, flutter

More

Packages that depend on book_view_flutter