Authentication check plus signin screen added to frontend

This commit is contained in:
2024-04-03 22:14:54 +02:00
parent 340e54a0bb
commit dc6f4e0ebd
29 changed files with 761 additions and 161 deletions

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:patient_manager/main.dart';
class MyAppBar extends StatelessWidget {
final String barTitle;
@@ -11,6 +12,15 @@ class MyAppBar extends StatelessWidget {
backgroundColor: Colors.blueAccent,
elevation: 8,
shadowColor: Colors.black,
leading: IconButton(
onPressed: () {
client.auth.signOut();
Navigator.of(context).pushNamed('/');
},
icon: const Icon(Icons.logout),
iconSize: 35,
color: Colors.black,
),
title: Text(
barTitle,
style: const TextStyle(