import 'package:fluent_ui/fluent_ui.dart';

class SmartInput extends StatelessWidget {
  final String label;
  final String placeholder;
  final TextEditingController controller;
  final TextInputType type;
  final bool enabled;
  final VoidCallback? onTap;
  final bool populate;

  const SmartInput(
      {Key? key,
      required this.label,
      required this.placeholder,
      required this.controller,
      this.onTap,
      this.enabled = true,
      this.populate = false,
      this.type = TextInputType.text})
      : super(key: key);
  
  @override
  Widget build(BuildContext context) {
    return TextBox(
      enabled: enabled,
      controller: controller,
      header: label,
      keyboardType: type,
      placeholder: placeholder,
      onTap: onTap,
    );
  }
}
