Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2020
PPL-C
DTB-Layanan Fasilitas Publik Penyandang Disabilitas
PoiPoLeGan-PPLapanganTembak-DTB Layanan Fasilitas Publik Penyandang Disabilitas-FE
Commits
9aa4680b
Commit
9aa4680b
authored
Apr 20, 2020
by
Usman Sidiq
Browse files
[GREEN] Done implement navigation to login
parent
28a07c47
Pipeline
#42048
passed with stages
in 7 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/component/bisago_drawer.dart
View file @
9aa4680b
import
'package:flutter/material.dart'
;
import
'package:ppl_disabilitas/config/styles.dart'
;
import
'package:ppl_disabilitas/page/login/login.dart'
;
class
BisaGoDrawer
extends
StatelessWidget
{
final
List
<
Map
<
String
,
dynamic
>>
drawerList
=
[
...
...
@@ -27,6 +28,7 @@ class BisaGoDrawer extends StatelessWidget {
SizedBox
(
width:
40
,
child:
FloatingActionButton
(
heroTag:
null
,
backgroundColor:
Colors
.
white
,
elevation:
0
,
onPressed:
()
=>
{},
...
...
@@ -83,7 +85,7 @@ class BisaGoDrawer extends StatelessWidget {
),
onTap:
()
{
if
(
title
==
'Login'
)
{
_navigateToLogin
(
context
);
_navigateToLogin
Page
(
context
);
}
},
),
...
...
@@ -96,7 +98,8 @@ class BisaGoDrawer extends StatelessWidget {
);
}
void
_navigateToLogin
(
BuildContext
context
)
{
void
_navigateToLoginPage
(
BuildContext
context
)
{
final
route
=
MaterialPageRoute
(
builder:
(
_
)
=>
Login
());
Navigator
.
of
(
context
).
push
(
route
);
}
}
Write
Preview
Supports
Markdown
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