// import 'package:flutter/material.dart';
// import 'package:flutter/services.dart';
// import 'package:hamlemuhcrm/core/colors/colors.dart';
// import 'package:hamlemuhcrm/core/responsive.dart';
// import 'package:hamlemuhcrm/core/font_styles/font_styles.dart';

// class EmployeeTfName extends StatefulWidget {
//   TextEditingController tf; //controller
//   double genislik; //textfield genisligi
//   GlobalKey<FormState> formKeyName;
//   EmployeeTfName(
//       {super.key,
//       required this.tf,
//       required this.genislik,
//       required this.formKeyName});

//   @override
//   State<EmployeeTfName> createState() => _EmployeeTfNameState();
// }

// class _EmployeeTfNameState extends State<EmployeeTfName> {
//   String gecersizName = '';
//   @override
//   Widget build(BuildContext context) {
//     return Container(
//       height: context.dynamicHeight(0.05),
//       width: context.dynamicWidth(widget.genislik),
//       padding: EdgeInsets.symmetric(
//           horizontal: context.dynamicWidth(0.02),
//           vertical: context.dynamicHeight(0.01)),
//       alignment: Alignment.center,
//       decoration: BoxDecoration(
//           color: Colors.white,
//           border: Border.all(color: Colors.grey.shade400),
//           borderRadius: BorderRadius.circular(10)),
//       child: TextFormField(
//         inputFormatters: [LengthLimitingTextInputFormatter(20)],
//         style: FontStyles.instance.employeetbxYazi,
//         magnifierConfiguration: TextMagnifierConfiguration.disabled,
//         validator: (value) {
//           if (value!.isEmpty ||
//               !RegExp(r"^\s*([A-Za-z]{1,}([\.,] |[-']| ))+[A-Za-z]+\.?\s*$")
//                   .hasMatch(value)) {
//             gecersizName = value;
//             ScaffoldMessenger.of(context).showSnackBar(
//               SnackBar(
//                 backgroundColor: ColorsConstants.instance.arkaplan,
//                 content: Text(
//                   gecersizName,
//                 ),
//                 behavior: SnackBarBehavior.floating,
//                 action: SnackBarAction(
//                   label: "Tamam",
//                   textColor: Colors.white,
//                   onPressed: () {},
//                 ),
//               ),
//             );
//           } else {
//             return null;
//           }
//         },
//         onTapOutside: (event) {
//           FocusScope.of(context).unfocus();
//         },
//         textInputAction: TextInputAction.done,
//         cursorColor: ColorsConstants.instance.anatema,
//         controller: widget.tf,
//         decoration: const InputDecoration(border: InputBorder.none),
//       ),
//     );
//   }
// }
