// 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 EmployeeTfTel extends StatefulWidget {
//   TextEditingController tf; //controller
//   double genislik; //textfield genisligi
//   GlobalKey<FormState>? formKeyTel;

//   EmployeeTfTel(
//       {super.key,
//       required this.tf,
//       required this.genislik,
//       required this.formKeyTel});

//   @override
//   State<EmployeeTfTel> createState() => _EmployeeTfTelState();
// }

// class _EmployeeTfTelState extends State<EmployeeTfTel> {
//   Color cerceveRenk = Colors.grey.shade400;
//   @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: cerceveRenk),
//           borderRadius: BorderRadius.circular(10)),
//       child: TextFormField(
//         magnifierConfiguration: TextMagnifierConfiguration.disabled,
//         validator: (value) {
//           if (value!.isEmpty ||
//               !RegExp(r'^\s*(?:\+?(\d{1,3}))?[-. (]*(\d{3})[-. )]*(\d{3})[-. ]*(\d{4})(?: *x(\d+))?\s*$')
//                   .hasMatch(value)) {
//             widget.tf.text = 'geçerli degil';
//           } else {
//             return null;
//           }
//         },
//         inputFormatters: [LengthLimitingTextInputFormatter(11)],
//         style: FontStyles.instance.employeetbxYazi,
//         textInputAction: TextInputAction.done,
//         onTapOutside: (event) {
//           FocusScope.of(context).unfocus();
//         },
//         cursorColor: ColorsConstants.instance.anatema,
//         controller: widget.tf,
//         decoration: InputDecoration(
//             border: InputBorder.none, errorStyle: FontStyles.instance.employeetbxError),
//       ),
//     );
//   }
// }
