content: import 'package:flutter/material.dart';
  
  import 'ColorGlobal.dart';
  
  class TextFieldWidget extends StatelessWidget {
    final String hintText;
    final IconData prefixIconData;
    final IconData suffixIconData;
    final bool obscureText;
    final Function onChanged;
    final FocusNode focusNode;
    final TextEditingController textEditingController;
  
    TextFieldWidget({
      this.hintText,
      this.prefixIconData,
      this.suffixIconData,
      this.obscureText,
      this.onChanged,
      this.textEditingController,
      this.focusNode,
    });
  
    @override
    Widget build(BuildContext context) {
      return TextField(
        onChanged: onChanged,
        obscureText: obscureText,
        controller: textEditingController,
        cursorColor: ColorGlobal.colorPrimary,
        focusNode:  focusNode,
        style: TextStyle(
          color: ColorGlobal.whiteColor,
          fontWeight: FontWeight.w600,
          fontSize: 16.0,
        ),
        decoration: InputDecoration(
          labelStyle: TextStyle(color: ColorGlobal.whiteColor),
          focusColor: ColorGlobal.whiteColor,
          filled: true,
          enabledBorder: UnderlineInputBorder(
            borderRadius: BorderRadius.circular(10),
            borderSide: BorderSide.none,
          ),
          focusedBorder: OutlineInputBorder(
            borderRadius: BorderRadius.circular(15),
            borderSide: BorderSide(color: ColorGlobal.whiteColor),
          ),
          labelText: hintText,
          hintStyle: TextStyle(color: ColorGlobal.colorPrimary, fontSize: 14),
          prefixIcon: Icon(
            prefixIconData,
            size: 20,
            color: ColorGlobal.whiteColor,
          ),
          suffixIcon: GestureDetector(
            child: Icon(
              suffixIconData,
              size: 20,
              color: ColorGlobal.whiteColor,
            ),
          ),
        ),
      );
    }
  }
  