good_login 0.0.1 copy "good_login: ^0.0.1" to clipboard
good_login: ^0.0.1 copied to clipboard

A widget with simple display.

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);
                  },
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }


1
likes
110
pub points
0%
popularity

Publisher

unverified uploader

A widget with simple display.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_bounce

More

Packages that depend on good_login