Updated widgets
This commit is contained in:
parent
78259a6f7e
commit
5ee5902524
4 changed files with 28 additions and 45 deletions
|
|
@ -1,17 +1,20 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
class InputWidget extends StatelessWidget {
|
||||
final TextEditingController controller;
|
||||
final String placeholder;
|
||||
final String? placeholder;
|
||||
final bool password;
|
||||
|
||||
const InputWidget({super.key, required this.controller, required this.placeholder});
|
||||
const InputWidget({super.key, required this.controller, this.placeholder, required this.password});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return TextField(
|
||||
controller: controller,
|
||||
obscureText: password,
|
||||
enableSuggestions: !password,
|
||||
autocorrect: !password,
|
||||
decoration: InputDecoration(
|
||||
filled: true,
|
||||
fillColor: const Color.fromRGBO(255, 255, 255, 1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue