Neuron Login

Build Status

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

Usage

Add this line to pubspec.yaml

   dependencies:
     neuron_login:

Import

import 'package:neuron_login/neuron_login.dart';

Example

  LoginPage(
    buttonColor: Colors.red,
    splashButtonColor: Colors.grey,
    buttonText: 'SELANJUTNYA',
    buttonTextColor: Colors.white,
    base64Image: 'assets/images/logo_tsat.png',
    forgotPassword: true,
    forgotPasswordText: 'Lupa Password?',
    forgotPasswordTextColor: Colors.red,
    buttonRegisterColor: Colors.grey,
    splashButtonRegisterColor: Colors.grey,
    buttonRegisterText: 'DAFTAR',
    buttonRegisterTextColor: Colors.white,
    buttonRegister: true,
    labelInputUsername: 'E-mail',
    labelInputPassword: 'Password',
    onButtonTap: (loginData) {
      print(loginData.username);
      print(loginData.password);
      print(loginData.rememberMe.toString());
    },
    onForgotPasswordTap: (boolean){
      print('Forgot Password Tapped');
    },
    onButtonRegisterTap: (boolean){
      print('Button Register Tapped');
    },
  ),
FunctionDescriptionReturn
buttonColorSet color for button submit
splashButtonColorSet splash button submit color
buttonTextSet text for button submit
buttonTextColorSet text color for button submit
base64ImageImage asset link
forgotPasswordShow or hide forgot password
forgotPasswordTextSet text for forgot password text
forgotPasswordTextColorSet text color for forgot password
buttonRegisterColorSet color for button register
splashButtonRegisterColorSet splash button register color
buttonRegisterTextSet text for button register
buttonRegisterTextColorSet text color for button register
buttonRegisterShow or hide button register
labelInputUsernameLabel and hint text for input username
labelInputPasswordLabel and hint text for input password
onButtonTapReturn if button login tappedString username
String password
boolean rememberMe
onForgotPasswordTapReturn if text forgot password tappedboolean
onButtonRegisterTapReturn if button register tappedboolean

UI

image

Getting Started

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

Libraries

form_user
neuron_login