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

A Flutter package that provides a visually engaging and animated way to display credit/debit cards. Perfect for payment apps, digital wallets, or any application that needs to showcase payment cards i [...]

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',
          ),
        ],
      ),
    );
  }
}
14
likes
0
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides a visually engaging and animated way to display credit/debit cards. Perfect for payment apps, digital wallets, or any application that needs to showcase payment cards in an elegant manner.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_hooks, flutter_svg, freezed_annotation, image, shared_preferences

More

Packages that depend on card_hub