neuron_register 0.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • new45

Neuron Register #

Build Status

Flutter register package from Neuron with 🥰 . Supports for iOS and Android.

Usage #

Add this line to pubspec.yaml

   dependencies:
     neuron_register:

Import #

import 'package:neuron_register/neuron_register.dart';

Example #

  RegisterPage(
    onButtonTap: (onValue) {
      print(onValue.username);
      print(onValue.password);
      print(onValue.name);
      print(onValue.phone);
    },
    buttonColor: Colors.red,
    splashButtonColor: Colors.grey,
    buttonText: 'SELANJUTNYA',
    buttonTextColor: Colors.white,
    onTextLoginTap: (onValue) {
      print('onTextLoginTap $onValue');
    },
    showTextLogin: true,
    buttonGoogleShow: true,
    buttonFacebookShow: true,
    labelInputUsername: 'E-Mail',
    labelInputPassword: 'Password',
    labelInputName: 'Nama',
    labelInputPhone: 'No. HP',
    onButtonGoogleTap: (onValue) {
      print('onButtonGoogleTap $onValue');
    },
    onButtonFacebookTap: (onValue) {
      print('onButtonFacebookTap $onValue');
    },
    assetFacebookButton: 'assets/images/facebook.png',
    assetGoogleButton: 'assets/images/google.png',
    showLabelInputUsername: true,
    showLabelInputPassword: true,
    showLabelInputName: true,
    showLabelInputPhone: true,
    orText: 'Atau',
    labelAlreadyAccount: 'Sudah Punya Akun?',
    colorLogin: Colors.red,
  ),
FunctionDescriptionReturn
buttonColorSet color for button submit
splashButtonColorSet splash button submit color
buttonTextSet text for button submit
buttonTextColorSet text color for button submit
labelInputUsernameLabel and hint text for input username
labelInputPasswordLabel and hint text for input password
labelInputNameLabel and hint text for input name
labelInputPhoneLabel and hint text for input phone
showLabelInputUsernameShow or hide label and text input username
showLabelInputPasswordShow or hide label and text input password
showLabelInputNameShow or hide label and text input name
showLabelInputPhoneShow or hide label and text input phone
showTextLoginShow or hide text login label
buttonFacebookShowShow or hide button sign up wih facebook
buttonGoogleShowShow or hide button sign up wih google
assetFacebookButtonSet logo facebook
assetGoogleButtonSet logo google
onButtonTapReturn if button login tappedString username
String password
String name
String phone
onTextLoginTapReturn if button login tapped
onButtonGoogleTapReturn if button google tapped
onButtonFacebookTapReturn if button facebook tapped
orTextSet or text
labelAlreadyAccountSet text label login
colorLoginSet color label login

UI #

image

Getting Started #

See the example directory for a complete sample app using Neuron Register.

[0.0.1] - TODO: Add release date. #

  • TODO: Describe initial release.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Neuron Register Demo',
      theme: ThemeData(
        primarySwatch: Colors.red,
      ),
      home: HomeScreen(),
    );
  }
}

class HomeScreen extends StatefulWidget {
  @override
  _HomeScreenState createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      resizeToAvoidBottomPadding: false,
      resizeToAvoidBottomInset: false,
      body: Padding(
        padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
        child: RegisterPage(
          onButtonTap: (onValue) {
            print(onValue.username);
            print(onValue.password);
            print(onValue.name);
            print(onValue.phone);
          },
          buttonColor: Colors.red,
          splashButtonColor: Colors.grey,
          buttonText: 'SELANJUTNYA',
          buttonTextColor: Colors.white,
          onTextLoginTap: (onValue) {
            print('onTextLoginTap $onValue');
          },
          showTextLogin: true,
          buttonGoogleShow: true,
          buttonFacebookShow: true,
          labelInputUsername: 'E-Mail',
          labelInputPassword: 'Password',
          labelInputName: 'Nama',
          labelInputPhone: 'No. HP',
          onButtonGoogleTap: (onValue) {
            print('onButtonGoogleTap $onValue');
          },
          onButtonFacebookTap: (onValue) {
            print('onButtonFacebookTap $onValue');
          },
          assetFacebookButton: 'assets/images/facebook.png',
          assetGoogleButton: 'assets/images/google.png',
          showLabelInputUsername: true,
          showLabelInputPassword: true,
          showLabelInputName: true,
          showLabelInputPhone: true,
          orText: 'Atau',
          labelAlreadyAccount: 'Sudah Punya Akun?',
          colorLogin: Colors.red,
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  neuron_register: ^0.0.1

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

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

  • Dart: 2.8.4
  • pana: 0.13.14
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

Because:

  • neuron_register that is a package requiring null.

Health issues and suggestions

Document public APIs. (-0.29 points)

40 out of 41 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Format lib/model/form_user.dart.

Run flutter format to format lib/model/form_user.dart.

Format lib/neuron_register.dart.

Run flutter format to format lib/neuron_register.dart.

Maintenance suggestions

The package description is too short. (-13 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.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

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 1.14.13
meta 1.1.8 1.2.2
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies
flutter_test