Commit 165421d2 authored by Dio Maulana's avatar Dio Maulana

logout

parent 0a534c1c
...@@ -161,9 +161,16 @@ class BodyWIdget extends StatelessWidget { ...@@ -161,9 +161,16 @@ class BodyWIdget extends StatelessWidget {
width: AppMargin.m10, width: AppMargin.m10,
), ),
Expanded( Expanded(
child: CardSectionHome( child: GestureDetector(
title: "Log out", // TODO: HAPUS SESSION
logo: Assets.logoutIcon, onTap: () {
Navigator.pushNamedAndRemoveUntil(
context, Routes.loginRoute, (route) => false);
},
child: CardSectionHome(
title: "Log out",
logo: Assets.logoutIcon,
),
), ),
), ),
], ],
......
Markdown is supported
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