credit_card_type_detector 3.0.0 copy "credit_card_type_detector: ^3.0.0" to clipboard
credit_card_type_detector: ^3.0.0 copied to clipboard

A package that detects credit card types based on the current credit card number patterns

example/lib/main.dart

import 'package:flutter/material.dart';

import './screens/add_credit_card_screen.dart';
import './blocs/bloc.dart';
import './blocs/add_credit_card_bloc.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return BlocProvider<AddCreditCardBloc>(
      bloc: AddCreditCardBloc(),
      child: AddCreditCardScreen(),
    );
  }
}
70
likes
140
points
28.7k
downloads

Publisher

unverified uploader

Weekly Downloads

A package that detects credit card types based on the current credit card number patterns

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on credit_card_type_detector