Files
mih-project/Frontend/patient_manager/lib/components/myAppBar.dart

41 lines
1.1 KiB
Dart

import 'package:flutter/material.dart';
import 'package:patient_manager/theme/mihTheme.dart';
class MyAppBar extends StatelessWidget implements PreferredSizeWidget {
@override
Size get preferredSize => const Size.fromHeight(60);
final String barTitle;
const MyAppBar({super.key, required this.barTitle});
@override
Widget build(BuildContext context) {
return AppBar(
//backgroundColor: Colors.blueAccent,
elevation: 8,
shadowColor: MyTheme().secondaryColor(),
iconTheme: IconThemeData(color: MyTheme().primaryColor()),
// actions: [
// IconButton(
// onPressed: () {
// client.auth.signOut();
// Navigator.of(context).pushNamed('/');
// },
// icon: const Icon(Icons.logout),
// iconSize: 35,
// color: Colors.black,
// ),
// ],
title: Text(
barTitle,
style: TextStyle(
fontWeight: FontWeight.bold,
color: MyTheme().primaryColor(),
),
),
centerTitle: true,
);
}
}