sk_numberpad 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 70

SKNumberPad #

Fast and easy to use custom number pad library for Flutter Flutter

GIF #

SKNumberPadDemo

💻 Installation #

You just need to add sk_number_pad as a dependency in your pubspec.yaml file.

dependencies:
sk_numberpad: ^1.0.0

Usage #

Import this class #

import 'package:sk_numberpad/sk_numberpad.dart';

SKNumberPadWidget #

@override
Widget build(BuildContext context) {
  // TODO: implement build
  return Scaffold(
    body:SkNumberPad(
      bgColor: ColorsUtils.orange,
      textColor: Colors.white,
      selectedNo: (value) {
        print(value);
      },
      doneSelected: (value) {
        print('Done Selected');
      },
    )
  );
}

📃License #

Copyright 2020, Senthil Kumar

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

[0.0.1] - 2020-03-04 #

  • Initial Version.

[0.0.2] - 2020-03-04 #

  • Next Version.

[1.0.0] - 2020-03-04 #

  • Final Version.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:sk_numberpad_example/otp_screen.dart';

import 'login_screen.dart';

var routes = <String, WidgetBuilder>{
  "/OTPScreen": (BuildContext context) => OTPScreen(),
};

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: LoginPage(),
      routes: routes,
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  sk_numberpad: ^1.0.0

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:sk_numberpad/sk_numberpad.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
42
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
98
Overall:
Weighted score of the above. [more]
70
Learn more about scoring.

We analyzed this package on May 30, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.2
  • pana: 0.13.8-dev
  • Flutter: 1.17.1

Health suggestions

Fix lib/sk_numberpad.dart. (-1 points)

Analysis of lib/sk_numberpad.dart reported 2 hints:

line 1 col 9: Name libraries using lowercase_with_underscores.

line 6 col 7: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: SkNumberPad.bgColor, SkNumberPad.textColor

Maintenance suggestions

The package description is too short. (-2 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

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