36 lines
939 B
Dart
36 lines
939 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:manager_app/Components/text_field_container.dart';
|
|
import 'package:manager_app/constants.dart';
|
|
|
|
class RoundedInputField extends StatelessWidget {
|
|
final String hintText;
|
|
final IconData icon;
|
|
final ValueChanged<String> onChanged;
|
|
const RoundedInputField({
|
|
Key key,
|
|
this.hintText,
|
|
this.icon = Icons.person,
|
|
this.onChanged,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return TextFieldContainer(
|
|
child: TextField(
|
|
onChanged: onChanged,
|
|
cursorColor: kPrimaryColor,
|
|
style: TextStyle(fontSize: 20, color: kBlack),
|
|
decoration: InputDecoration(
|
|
icon: Icon(
|
|
icon,
|
|
color: kPrimaryColor,
|
|
),
|
|
hintText: hintText,
|
|
hintStyle: TextStyle(fontSize: 20.0, color: kBlack),
|
|
border: InputBorder.none,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|