Commit e3e7a122 authored by Budi Prasetyo's avatar Budi Prasetyo

nambah logout firebase

parent e430a69a
import 'package:flutter/material.dart';
import 'package:medapp_eksad/firebase/firebase_auth_methods.dart';
import 'package:medapp_eksad/widget/button_appbar.dart';
import 'package:medapp_eksad/register.dart';
import 'package:provider/provider.dart';
AppBar AppbarHomeLarge(Size screenSize, BuildContext context, Color home,
......@@ -144,6 +146,7 @@ AppBar AppbarHomeLargeUser(Size screenSize, BuildContext context, Color home,
),
ElevatedButton(
onPressed: () {
context.read<FirebaseAuthMethods>().signOut(context);
Navigator.pushNamed(context, '/');
},
style: ElevatedButton.styleFrom(
......
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