u_credit_card 1.4.0 copy "u_credit_card: ^1.4.0" to clipboard
u_credit_card: ^1.4.0 copied to clipboard

uCreditCard - Easy to use beautiful Card UI Flutter Package.

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.purple,
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("u_credit_card")),
      body: const Center(
        child: CreditCardUi(
          width: 300,
          cardHolderFullName: 'John Doe',
          cardNumber: '1234567812345678',
          validFrom: '01/23',
          validThru: '01/28',
          topLeftColor: Colors.blue,
          doesSupportNfc: true,
          placeNfcIconAtTheEnd: true,
          cardType: CardType.debit,
          cardProviderLogo: FlutterLogo(),
          cardProviderLogoPosition: CardProviderLogoPosition.right,
          showBalance: true,
          balance: 128.32434343,
          autoHideBalance: true,
          enableFlipping: true,
          cvvNumber: '123',
        ),
      ),
    );
  }
}
52
likes
150
points
1.69k
downloads
screenshot

Publisher

verified publisherutpals.com

Weekly Downloads

uCreditCard - Easy to use beautiful Card UI Flutter Package.

Repository (GitHub)
View/report issues
Contributing

Topics

#creditcard #credit #card #ucreditcard #debitcard

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on u_credit_card