mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 06:28:56 +03:30
Set Pass Screen
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user