Set Pass Screen

This commit is contained in:
hanie.khodkari
2025-04-29 17:10:09 +03:30
parent bb1adc81ec
commit ff0931048e
6 changed files with 301 additions and 251 deletions
+26 -4
View File
@@ -7,8 +7,10 @@ import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:provider/provider.dart';
import '../config/colors.dart';
import '../config/routes.dart';
import '../providers/auth.dart';
import 'home_screen.dart';
class MyInfoScreen extends StatefulWidget {
// static const route = '/MyInfoScreenRoute';
@@ -52,7 +54,7 @@ class _MyInfoScreenState extends State<MyInfoScreen> {
appBar: AppBar(
titleSpacing: -10,
title: Text(
'Dashboard',
'Home',
style: TextStyle(
color: Colors.white,
),
@@ -131,8 +133,28 @@ class _MyInfoScreenState extends State<MyInfoScreen> {
icon: FontAwesomeIcons.envelope,
inputType: TextInputType.emailAddress,
),
SizedBox(
height: 40,
SizedBox(height: 20),
SelectionItem(
firstLine: 'CHANGE PASSWORD',
secondLine: 'Set a new password',
firstLineColor: Colors.black,
backgroundColor: kLightGreyBackground,
onTap: () {
Navigator.of(context)
.popAndPushNamed(Routes.rePassScreen);
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) {
// return Consumer<Auth>(
// builder: (ctx, auth, _) {
// return MyInfoScreen();
// },
// );
// },
// ),
// )
},
),
Consumer<Auth>(builder: (context, auth, _) {
return InkWell(
@@ -140,7 +162,7 @@ class _MyInfoScreenState extends State<MyInfoScreen> {
padding: EdgeInsets.symmetric(
horizontal: 60, vertical: 10),
margin: EdgeInsets.only(
top: 50, bottom: 20),
top: 20, bottom: 20),
width: double.infinity,
decoration: BoxDecoration(
color: Colors.black,