step 9 : add fungsi permission handler, get current latitude, longitude

This commit is contained in:
sindhu
2024-01-26 08:01:33 +07:00
parent b85e3515e8
commit 757b72a9f0
15 changed files with 535 additions and 22 deletions

View File

@@ -163,27 +163,27 @@ class LoginScreen extends HookConsumerWidget {
SizedBox(
height: Constant.getActualYPhone(context: context, y: 100),
),
// (currentUserGoogle != null)
// ? Container(
// child: ListTile(
// leading: GoogleUserCircleAvatar(
// identity: currentUserGoogle,
// ),
// title: Text(
// currentUserGoogle.displayName ?? "",
// ),
// subtitle: Text(
// currentUserGoogle.email,
// ),
// trailing: IconButton(
// icon: Icon(Icons.logout_outlined),
// onPressed: () async {
// await googleSignIn.disconnect();
// },
// ),
// ),
// )
// :
(currentUserGoogle != null)
? Container(
child: ListTile(
leading: GoogleUserCircleAvatar(
identity: currentUserGoogle,
),
title: Text(
currentUserGoogle.displayName ?? "",
),
subtitle: Text(
currentUserGoogle.email,
),
trailing: IconButton(
icon: Icon(Icons.logout_outlined),
onPressed: () async {
await googleSignIn.disconnect();
},
),
),
)
:
// Logo Landscape
Padding(
padding: EdgeInsets.only(