mirrored_repositories/flutter-bloc-authentication-navigation/lib/common
import 'package:flutter_mobile_application/common/constants/theme_colors.dart';
import 'package:flutter/material.dart';

class BoxedTextField extends StatelessWidget {
  final String hint;
  final TextEditingController controller;
  final TextInputType keyboard;
  final bool isInputHidden;
  final FocusNode focusNode;
  BoxedTextField(
      {@required this.controller,
      @required this.hint,
      this.isInputHidden = false,
      this.keyboard = TextInputType.text,
      this.focusNode});

  @override
  Widget build(BuildContext context) {
    return TextFormField(
      decoration: InputDecoration(
        filled: true,
        fillColor: ThemeColors.white,
        hintText: hint,
        border: OutlineInputBorder(
            borderRadius: BorderRadius.circular(10),
            borderSide: BorderSide(color: ThemeColors.black)),
      ),
      controller: controller,
      obscureText: isInputHidden,
      keyboardType: keyboard,
      focusNode: focusNode,
    );
  }
}
