content: import 'package:flutter/material.dart';
  import 'package:go_absensi/app/style/app_color.dart';
  
  class CustomInput extends StatelessWidget {
    final TextEditingController controller;
    final String label;
    final String hint;
    final bool disabled;
    final EdgeInsetsGeometry margin;
    final bool obsecureText;
    final Widget? suffixIcon;
  
    CustomInput({
      required this.controller,
      required this.label,
      required this.hint,
      this.disabled = false,
      this.margin = const EdgeInsets.only(bottom: 16),
      this.obsecureText = false,
      this.suffixIcon,
    });
  
    @override
    Widget build(BuildContext context) {
      print("builded");
      return Material(
        color: Colors.white,
        child: Container(
          width: MediaQuery.of(context).size.width,
          padding: EdgeInsets.only(left: 14, right: 14, top: 4),
          margin: margin,
          decoration: BoxDecoration(
            color: (disabled == false) ? Colors.transparent : AppColor.primaryExtraSoft,
            borderRadius: BorderRadius.circular(8),
            border: Border.all(width: 1, color: AppColor.secondaryExtraSoft),
          ),
          child: TextField(
            readOnly: disabled,
            obscureText: obsecureText,
            style: TextStyle(fontSize: 14, fontFamily: 'poppins'),
            maxLines: 1,
            controller: controller,
            decoration: InputDecoration(
              suffixIcon: suffixIcon ?? SizedBox(),
              label: Text(
                label,
                style: TextStyle(
                  color: AppColor.secondarySoft,
                  fontSize: 14,
                ),
              ),
              floatingLabelBehavior: FloatingLabelBehavior.always,
              border: InputBorder.none,
              hintText: hint,
              hintStyle: TextStyle(
                fontSize: 14,
                fontFamily: 'poppins',
                fontWeight: FontWeight.w500,
                color: AppColor.secondarySoft,
              ),
            ),
          ),
        ),
      );
    }
  }