mirrored_repositories/Daily-Report/lib/components
import 'package:flutter/material.dart';

import '../constant/contant.dart';

class DailyReportTextField extends StatelessWidget {
   DailyReportTextField({
    Key? key,
    required TextEditingController controller,
    required this.hintText,
    this.enable,
  })  : _controller = controller,
        super(key: key);

  final TextEditingController _controller;
  final String hintText;
  bool? enable=true;

  @override
  Widget build(BuildContext context) {
    return TextField(
      enabled: enable,
      controller: _controller,
      decoration: InputDecoration(
          focusedBorder: UnderlineInputBorder(
              borderSide: new BorderSide(color: appMainColor)),
          disabledBorder: UnderlineInputBorder(
              borderSide: new BorderSide(color: appMainColor)),
          border: UnderlineInputBorder(
              borderSide: new BorderSide(color: appMainColor)),
          hintText: hintText),
    );
  }
}
