update
This commit is contained in:
parent
6f54a6f9fc
commit
a208763a67
13 changed files with 232 additions and 117 deletions
|
|
@ -8,8 +8,10 @@ class InputWidget extends StatelessWidget {
|
|||
final TextEditingController controller;
|
||||
final bool? password;
|
||||
final OnChangedCallback? onChanged;
|
||||
final String? placeholder;
|
||||
|
||||
const InputWidget({super.key, required this.label, required this.controller, this.password, this.onChanged});
|
||||
const InputWidget(
|
||||
{super.key, required this.label, required this.controller, this.password, this.onChanged, this.placeholder});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
@ -29,7 +31,9 @@ class InputWidget extends StatelessWidget {
|
|||
filled: true,
|
||||
fillColor: const Color.fromRGBO(255, 255, 255, 1),
|
||||
border: OutlineInputBorder(borderRadius: BorderRadius.circular(8)),
|
||||
contentPadding: const EdgeInsets.symmetric(vertical: 10, horizontal: 24)),
|
||||
contentPadding: const EdgeInsets.symmetric(vertical: 2, horizontal: 24),
|
||||
prefixIcon: placeholder != null ? Icon(Icons.search, color: Colors.grey) : null,
|
||||
hintText: placeholder),
|
||||
style: GoogleFonts.outfit(textStyle: const TextStyle(color: Color.fromRGBO(0, 0, 0, 1), fontSize: 16)),
|
||||
obscureText: password ?? false,
|
||||
onChanged: onChanged,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue