Commit 7731176f authored by Dio Maulana's avatar Dio Maulana

fixed type, and logout navigation

parent 3d1014fb
......@@ -181,17 +181,26 @@ class BodyWidget extends StatelessWidget {
Routes.changePasswordRoute,
);
},
child: PorfileButton(
child: ProfileButton(
marginTop: 32,
icon: Assets.passwordIcon,
text: "Ganti Password",
),
),
PorfileButton(
GestureDetector(
onTap: () {
Navigator.pushNamedAndRemoveUntil(
context,
Routes.loginRoute,
(route) => false,
);
},
child: ProfileButton(
marginTop: 16,
icon: Assets.logoutGreyIcon,
text: "Log Out",
),
),
],
),
],
......@@ -199,8 +208,8 @@ class BodyWidget extends StatelessWidget {
}
}
class PorfileButton extends StatelessWidget {
const PorfileButton({
class ProfileButton extends StatelessWidget {
const ProfileButton({
Key? key,
required this.marginTop,
required this.text,
......
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