indzcreditcard 0.1.4

  • Readme
  • Changelog
  • Example
  • Installing
  • 58

Indzooom Credit Card Widget #

A Flutter package allows you to easily implement the Credit card's UI easily with the Card detection.

Installing #

  1. Add dependency to pubspec.yaml

    Get the latest version in the 'Installing' tab on br.com.indzooom

dependencies:
    indzcreditcard: ^0.1.3
  1. Import the package
import 'package:indzcreditcard/indzcreditcard.dart';
  1. Adding CreditCardWidget

With required parameters


    CreditCardWidget(
        cardNumber: cardNumber,
        expiryDate: expiryDate,
        cardHolderName: cardHolderName,
        cvvCode: cvvCode,
        cPass1: cPass1,
        cPass2: cPass2,
        showBackView: isCvvFocused, //true when you want to show cvv(back) view
    ),

With optional parameters

    CreditCardWidget(
        cardNumber: cardNumber,
        expiryDate: expiryDate,
        cardHolderName: cardHolderName,
        cvvCode: cvvCode,
        cPass1: cPass1,
        cPass2: cPass2,
        showBackView: isCvvFocused,
        cardbgColor: Colors.black,
        height: 175,
        textStyle: TextStyle(color: Colors.yellowAccent),
        width: MediaQuery.of(context).size.width,
        animationDuration: Duration(milliseconds: 1000),
        ),
  1. Adding CreditCardForm
    CreditCardForm(
      themeColor: Colors.red,
      onCreditCardModelChange: (CreditCardModel data) {},
    ),

How to use #

Check out the example app in the example directory or the 'Example' tab on br.com.indzooom for a more complete example.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Credit #

This package's animation is inspired from from this Dribbble art.

0.1.3 #

Under develop...

  • Initial version, created by Giuliano Jordao

example/README.md

Flutter Credit Card Example #

A new Flutter application demonstrate use of the CreditCard widget package.

Running the app #

Get packages #

flutter packages get

Run the app #

flutter run

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

-Lab: Write your first Flutter app -Cookbook: Useful Flutter samples

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  indzcreditcard: ^0.1.4

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:indzcreditcard/indzcreditcard.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
28
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
58
Learn more about scoring.

We analyzed this package on Oct 9, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/indzcreditcard_form.dart.

Run flutter format to format lib/indzcreditcard_form.dart.

Format lib/indzcreditcard_model.dart.

Run flutter format to format lib/indzcreditcard_model.dart.

Format lib/indzcreditcard_widget.dart.

Run flutter format to format lib/indzcreditcard_widget.dart.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/giulianojordao/indzcreditcard was unreachable.

Issue tracker URL doesn't exist. (-10 points)

At the time of the analysis the issue_tracker field https://github.com/giulianojordao/indzcreditcard/issues was unreachable.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test