credit_card_type_detector 3.0.0 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
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(),
);
}
}