import 'package:flutter/material.dart';
import 'package:line_icons/line_icons.dart';

import '../../../../../common/validator/validator.dart';
import '../../../../components/field/field.dart';

class LoginPasswordField extends StatelessWidget {
  final TextEditingController controller;
  const LoginPasswordField({super.key, required this.controller});

  @override
  Widget build(BuildContext context) {
    return AppPasswordTextFormField(
      title: 'Password',
      prefixIcon: LineIcons.lock,
      hintText: 'Enter your password',
      validator: AppValidator.validatePassword,
      controller: controller,
    );
  }
}
