update passowrd field to have toggle

This commit is contained in:
2024-04-06 12:14:46 +02:00
parent 92fb204bf4
commit 8a69cb5e86
15 changed files with 154 additions and 75 deletions

View File

@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:patient_manager/components/myTextField.dart';
import 'package:patient_manager/components/myPassInput.dart';
import 'package:patient_manager/components/myTextInput.dart';
import 'package:patient_manager/components/mybutton.dart';
import 'package:patient_manager/main.dart';
import 'package:supabase_auth_ui/supabase_auth_ui.dart';
@@ -15,6 +16,7 @@ class SignIn extends StatefulWidget {
class _SignInState extends State<SignIn> {
final emailController = TextEditingController();
final passwordController = TextEditingController();
//bool _obscureText = true;
//sign user in
Future<void> signUserIn() async {
@@ -80,7 +82,6 @@ class _SignInState extends State<SignIn> {
child: MyTextField(
controller: emailController,
hintText: 'Email',
obscureText: false,
),
),
//spacer
@@ -88,10 +89,9 @@ class _SignInState extends State<SignIn> {
//password input
SizedBox(
width: 500.0,
child: MyTextField(
child: MyPassField(
controller: passwordController,
hintText: 'Password',
obscureText: true,
),
),
//spacer