mirrored_repositories/daruma-frontend/lib/ui
import 'package:flutter/material.dart';

class CustomTextFormField extends StatelessWidget {
  final String hintText;
  final Function validator;
  final Function onSaved;
  final String initialValue;

  CustomTextFormField({
    this.hintText,
    this.validator,
    this.onSaved,
    this.initialValue,
  });

  @override
  Widget build(BuildContext context) {
    return TextFormField(
      decoration: InputDecoration(
        hintText: hintText,
        filled: true,
        fillColor: Colors.transparent,
        contentPadding: EdgeInsets.all(1.0)
      ),
      validator: validator,
      onSaved: onSaved,
      onChanged: onSaved,
      initialValue: initialValue,
    );
  }
}
