update
This commit is contained in:
parent
148cdec83c
commit
7749f1100d
19 changed files with 447 additions and 217 deletions
|
|
@ -1,17 +1,18 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:pharmacy_mobile/widgets/dropdown_widget.dart';
|
||||
|
||||
class InputWidget extends StatelessWidget {
|
||||
final String label;
|
||||
final TextEditingController controller;
|
||||
final bool? password;
|
||||
final OnChangedCallback? onChanged;
|
||||
final String? placeholder;
|
||||
final String placeholder;
|
||||
|
||||
const InputWidget(
|
||||
{super.key, required this.label, required this.controller, this.password, this.onChanged, this.placeholder});
|
||||
const InputWidget({
|
||||
super.key,
|
||||
required this.label,
|
||||
required this.controller,
|
||||
required this.placeholder,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
@ -26,7 +27,6 @@ class InputWidget extends StatelessWidget {
|
|||
)),
|
||||
const Gap(8),
|
||||
TextField(
|
||||
textInputAction: TextInputAction.go,
|
||||
controller: controller,
|
||||
decoration: InputDecoration(
|
||||
filled: true,
|
||||
|
|
@ -40,8 +40,6 @@ class InputWidget extends StatelessWidget {
|
|||
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