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

import '../../../../../common/extension/extension.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: context.lang.password,
      prefixIcon: LineIcons.lock,
      hintText: context.lang.password_placeholder,
      validator: AppValidator.validatePassword,
      controller: controller,
    );
  }
}
