Fakultas Ilmu Komputer UI

Commit 9aa4680b authored by Usman Sidiq's avatar Usman Sidiq
Browse files

[GREEN] Done implement navigation to login

parent 28a07c47
Pipeline #42048 passed with stages
in 7 minutes
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);
_navigateToLoginPage(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);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment