-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputField.dart
35 lines (31 loc) · 873 Bytes
/
inputField.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:interiit_prep/shared/appColors.dart';
class InputField extends StatefulWidget {
const InputField({
Key? key,
required this.controller,
required this.hint,
}) : super(key: key);
final TextEditingController controller;
final String hint;
@override
State<InputField> createState() => _InputFieldState();
}
class _InputFieldState extends State<InputField> {
@override
Widget build(BuildContext context) {
return TextField(
controller: widget.controller,
decoration: InputDecoration(
hintText: widget.hint,
hintStyle: GoogleFonts.lato(
fontSize: 14
),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: AppColors.greenColor)
)
),
);
}
}