shopping_card 0.0.1 copy "shopping_card: ^0.0.1" to clipboard
shopping_card: ^0.0.1 copied to clipboard

A visually appealing shopping card UI package for Flutter, featuring support for dynamic product lists, image caching, and built-in shimmer loading effects. Easily display product cards in horizontal [...]

πŸ›οΈ Flutter Shopping Card #

A customizable and visually appealing shopping card UI component for Flutter.
This package helps you display product cards in vertical or horizontal lists with built-in features like image caching, shimmer loading, favorite toggling, and gesture detection for product navigation.

✨ Features #

  • πŸ“¦ Customizable product card layout
  • πŸ”„ Vertical and horizontal scroll support
  • ⚑ Shimmer loading placeholder
  • πŸ“· Image caching using cached_network_image
  • πŸ‘† Built-in gesture handling for taps

πŸ“Έ Preview #

Favorite Toggle Shimmer Effect Card UI

πŸš€ Getting Started #

1. Install #

Add the package to your pubspec.yaml:

dependencies:
  shopping_card: ^1.0.0
=======
This package is perfect for e-commerce or catalog-style apps, featuring image caching, shimmer loading, and gesture navigation.

---

## ✨ Features

- πŸ“¦ Customizable product card layout
- πŸ”„ Vertical and horizontal list view support
- ⚑ Built-in shimmer loading effect
- πŸ“· Image caching using `cached_network_image`
- πŸ‘† Tap detection for product navigation

---

## πŸ“Έ Preview


---

## πŸš€ Getting Started

### 1. Install

Add this to your `pubspec.yaml`:

```yaml
dependencies:
  shopping_card_listview: ^0.0.1

Then run:

flutter pub get
import 'package:shopping_card_listview/shopping_card.dart_listview';

##Example

import 'package:flutter/material.dart';
import 'package:shopping_card_listview/shopping_card.dart_listview';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    List<ShoppingCardData> products = [
      ShoppingCardData(
          imageUrl: 'https://cdn.dummyjson.com/product-images/beauty/red-lipstick/1.webp',
          title: 'Demo Product1',
          price: '\$10.00',
          totalItems: 15,
          
        ),
      ShoppingCardData(
          imageUrl: 'https://cdn.dummyjson.com/product-images/beauty/eyeshadow-palette-with-mirror/thumbnail.webp',
          title: 'Demo Product2',
          price: '\$10.00',
          totalItems: 15,
        ),
      ShoppingCardData(
          imageUrl: 'https://cdn.dummyjson.com/product-images/beauty/eyeshadow-palette-with-mirror/thumbnail.webp',
          title: 'Demo Product3',
          price: '\$10.00',
          totalItems: 15,
        
        ),
      ShoppingCardData(
          imageUrl: 'https://cdn.dummyjson.com/product-images/beauty/eyeshadow-palette-with-mirror/thumbnail.webp',
          title: 'Demo Product4',
          price: '\$10.00', totalItems: 15,
        ),
      ShoppingCardData(
          imageUrl: 'https://cdn.dummyjson.com/product-images/beauty/eyeshadow-palette-with-mirror/thumbnail.webp',
          title: 'Demo Product5',
          price: '\$10.00',
          totalItems: 15,
        ),];

    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Shopping Card Demo',
      home: Scaffold(
        appBar: AppBar(title: const Text('Shopping Card UI')),
        body: CardListView(
          scrollDirection: Axis.vertical,
          onClick: (product){
          //   Write your code here
          },
          isLoading: false,
          products: products

        ),
      ),
    );
  }
}

2
likes
120
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

A visually appealing shopping card UI package for Flutter, featuring support for dynamic product lists, image caching, and built-in shimmer loading effects. Easily display product cards in horizontal or vertical list views with integrated gesture handling for navigation and interactivity. Ideal for e-commerce apps and product showcases.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, flutter, shimmer

More

Packages that depend on shopping_card