Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
medapp_eksad
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qorri_di
medapp_eksad
Commits
7f89662f
Commit
7f89662f
authored
Sep 02, 2022
by
Budi Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forgot password
parent
58b0b867
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
4 deletions
+79
-4
forget_password.dart
lib/auth/forget_password.dart
+59
-0
admin_contact.dart
lib/dashboard/admin/admin_contact.dart
+3
-2
login.dart
lib/login.dart
+14
-1
main.dart
lib/main.dart
+3
-1
No files found.
lib/auth/forget_password.dart
0 → 100644
View file @
7f89662f
import
'package:flutter/material.dart'
;
class
ForgotPassword
extends
StatefulWidget
{
const
ForgotPassword
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
ForgotPassword
>
createState
()
=>
_ForgotPasswordState
();
}
class
_ForgotPasswordState
extends
State
<
ForgotPassword
>
{
final
formKey
=
GlobalKey
<
FormState
>();
String
email
=
''
;
@override
Widget
build
(
BuildContext
context
)
{
return
Stack
(
children:
[
Container
(
decoration:
BoxDecoration
(
image:
DecorationImage
(
image:
AssetImage
(
'assets/images/medapp_image1.png'
),
fit:
BoxFit
.
fill
)),
),
Padding
(
padding:
const
EdgeInsets
.
all
(
21.0
),
child:
ElevatedButton
(
onPressed:
(){
Navigator
.
pushNamed
(
context
,
'/login'
);
},
child:
Icon
(
Icons
.
arrow_back
)),
),
Center
(
child:
AlertDialog
(
title:
Text
(
'Enter your email address'
),
content:
Form
(
key:
formKey
,
child:
TextFormField
(
textAlign:
TextAlign
.
start
,
decoration:
InputDecoration
(
labelText:
"Email"
,
hintStyle:
const
TextStyle
(),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
circular
(
5.0
)),
),
onChanged:
(
value
)
=>
email
=
value
,
),
),
actions:
<
Widget
>[
TextButton
(
onPressed:
()
{
Navigator
.
pushNamed
(
context
,
'dashboard'
);
},
child:
const
Text
(
'Send'
),
),
],
)
),
],
);
}
}
lib/dashboard/admin/admin_contact.dart
View file @
7f89662f
...
...
@@ -56,7 +56,7 @@ class _Dashboard4State extends State<Dashboard4> {
padding:
const
EdgeInsets
.
all
(
30.0
),
child:
Container
(
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
decoration:
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
20
),
color:
Colors
.
blueAccent
[
200
])
,
child:
Column
(
children:
[
Container
(
...
...
@@ -69,7 +69,8 @@ class _Dashboard4State extends State<Dashboard4> {
Container
(
// height: screenSize.height*0.63,
width:
screenSize
.
width
*
0.95
,
color:
Colors
.
white
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
40
)),
//color: Colors.white,
child:
PaginatedDataTable
(
rowsPerPage:
5
,
// header :Text("Data Message User"),
...
...
lib/login.dart
View file @
7f89662f
...
...
@@ -199,7 +199,20 @@ class _loginState extends State<login> {
),
),
const
Spacer
(
flex:
3
,
flex:
2
,
),
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
end
,
mainAxisAlignment:
MainAxisAlignment
.
end
,
children:
[
TextButton
(
onPressed:
(){
Navigator
.
pushNamed
(
context
,
'/reset_password'
);
},
child:
Text
(
'Forgot Password?'
)),
SizedBox
(
width:
52
,)
],
),
const
Spacer
(
flex:
2
,
),
Row
(
children:
[
...
...
lib/main.dart
View file @
7f89662f
import
'package:flutter/material.dart'
;
import
'package:medapp_eksad/auth/forget_password.dart'
;
import
'package:medapp_eksad/dashboard/admin/main_dashboard_admin.dart'
;
import
'package:medapp_eksad/homepage.dart'
;
import
'package:medapp_eksad/login.dart'
;
...
...
@@ -26,7 +27,8 @@ class MyApp extends StatelessWidget {
'/contact'
:
(
context
)
=>
const
ContactUs
(),
'/login'
:
(
context
)
=>
const
login
(),
'/register'
:
(
context
)
=>
const
Register
(),
'/dashboard'
:
(
context
)
=>
const
DashboardAdmin
()
'/dashboard'
:
(
context
)
=>
const
DashboardAdmin
(),
'/reset_password'
:
(
context
)
=>
const
ForgotPassword
(),
},
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment