easy_login_widget 1.4.0 copy "easy_login_widget: ^1.4.0" to clipboard
easy_login_widget: ^1.4.0 copied to clipboard

EasyLoginWidget is a customizable flutter login widget, with responsive design for mobile and web. Its a highly customizable widget that allows you to create a login form with a few lines of code.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:easy_login_widget/easy_login_widget.dart';
void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  bool checkBoxValue = false;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: EasyLoginWidget(
          formKey: GlobalKey<FormState>(),
          buttonWidgetFirstOrLast: true,
          onPressedForgotPassword: () {},
          onPressed: () {},
          userNameController: TextEditingController(),
          passwordController: TextEditingController(),
          forgotPasswordStyle: const TextStyle(color: Colors.blue),
          forgotPasswordWidgetVisibility: true,
          rememberMeWidgetVisibility: true,
          userNameInputLabel: 'Username',
          passwordInputLabel: 'Password',
          buttonTextStyle: const TextStyle(color: Colors.white),
          rememberMeText: 'Remember me',
          inputSpacing: 10,
          checkBoxActiveColor: Colors.blue,
          checkBoxCheckColor: Colors.white,
          checkBoxValue: checkBoxValue,
          onPressedCheckbox: (value) {
            checkBoxValue = value;
            setState(() {});
          },
          rememberMeStyle: const TextStyle(color: Colors.blue),
        ),
      ),
    );
  }
}
1
likes
140
points
100
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

EasyLoginWidget is a customizable flutter login widget, with responsive design for mobile and web. Its a highly customizable widget that allows you to create a login form with a few lines of code.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on easy_login_widget