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.

Libraries

form_user
neuron_register