Good Login

This package can help you to create a simple login widget, include with validato.

Features

Success Status
Type Attribute
TextEditingController usernameController
TextEditingController passwordController
String hintUsername
String hintPassword
Color color
Color backgroundColor
Image image
VoidCallback onPressed

Getting started

First of all, you have to add this package in to pubspec.yaml

dependencies:
  good_login: any

and after that, you can import thi package using:

import 'package:good_login/good_login.dart';

Usage

To use this package, you can put this package in to your any widget.



login(String user, String pw) {
    print(user);
    print(pw);
  }

Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: SingleChildScrollView(
        child: Padding(
          padding: const EdgeInsets.symmetric(horizontal: 20),
          child: Center(
            child: Column(
              children: [
                const SizedBox(
                  height: 90,
                ),
                  GoodLogin(
                  color: Colors.blue[300],
                  usernameController: usercontroller,
                  passwordController: pwcontroller,
                  onPressed: () {
                    login(usercontroller.text, pwcontroller.text);
                  },
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }