card_hub 0.4.1 copy "card_hub: ^0.4.1" to clipboard
card_hub: ^0.4.1 copied to clipboard

A Flutter package for animated credit/debit card displays in payment apps and digital wallets.

example/example.dart

// ignore_for_file: public_member_api_docs

import 'package:card_hub/card_hub.dart';
import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Credit Hub',
      home: CardHub(
        items: [
          CardHubModel(
            id: '1',
            lastFour: 1,
            expirationMonth: 08,
            expirationYear: 2026,
            bankName: 'Bank Misr',
            type: CardType.mastercard,
            logoAssetPath: 'assets/images/mastercard.png',
            cardHolderName: 'Abouassi',
          ),
        ],
      ),
    );
  }
}
13
likes
140
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for animated credit/debit card displays in payment apps and digital wallets.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_svg, image, material_color_utilities, shared_preferences

More

Packages that depend on card_hub