mirrored_repositories/SwasthyaSetu/lib

import 'package:flutter/material.dart';
// import 'package:swasthya_setu/utils/colours.dart';

TextField getTextField(String inputName,double size,TextEditingController controller) {
  return TextField(
    cursorHeight: size,
    controller: controller,
    decoration: InputDecoration(
        label: Text(inputName),
        filled: true,
        
        focusColor: Colors.grey.shade200,
        fillColor: Colors.grey.shade200,
        border: const OutlineInputBorder()),
  );
}


TextField getTextNumberField(String inputName,double size,TextInputType type ,TextEditingController controller) {
  return TextField(keyboardType: type,
    cursorHeight: size,
    controller: controller,
    decoration: InputDecoration(
        label: Text(inputName),
        filled: true,
         focusColor: Colors.grey.shade200,
        fillColor: Colors.grey.shade200,
        border: const OutlineInputBorder()),
  );
}


TextField getReadTextField(String inputName,double size,String profileDetail) {
  TextEditingController controller = TextEditingController(text: profileDetail);
  return TextField(
    readOnly: true,
    controller: controller,
    cursorHeight: size,
    decoration: InputDecoration(
        //label: Text(profileDetail),
        label: Text(inputName),
        filled: true,
        //hintText:inputName,
        hintText: profileDetail,
        focusColor: Colors.grey.shade200,
        fillColor: Colors.grey.shade200,
        border: const OutlineInputBorder()),
  );
}