Skip to content

Commit

Permalink
Readme file updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Satyam Shrivastav committed Nov 27, 2023
1 parent bfbeef5 commit f7b7ba5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# parking_system

Download [here](https://drive.google.com/file/d/1UcO6HYqFbsynQo0NCSF38wkkloqozmb2/view?usp=sharing)
8 changes: 4 additions & 4 deletions lib/widgets/signoutdialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import 'package:parking_system/firebasemethod/firebaseauth.dart';
import 'package:parking_system/pages/loginpage.dart';
import 'package:parking_system/utils/colours.dart';

signOutDialog(BuildContext context, Size size,
FirebaseAuth _auth) {
signOutDialog(BuildContext context, Size size, FirebaseAuth _auth) {
return showDialog(
context: context,
builder: (context) {
Expand All @@ -26,8 +25,9 @@ signOutDialog(BuildContext context, Size size,
ElevatedButton(
onPressed: () async {
await FirebaseAuthMethod(_auth).signOut();
Navigator.of(context).pushReplacement(CupertinoPageRoute(
builder: (context) => LoginPage()));
Navigator.of(context).pop();
Navigator.of(context).pushReplacement(CupertinoPageRoute(
builder: (context) => LoginPage()));
},
child: Text("Yes"),
style: ElevatedButton.styleFrom(
Expand Down

0 comments on commit f7b7ba5

Please sign in to comment.