easy_login_widget 1.4.0
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.
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),
),
),
);
}
}