You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
757 B

import 'package:flutter/material.dart';
import '../navigation/app_router.dart';
/// Primary AppBar widget with settings icon for all main screens.
class PrimaryAppBar extends StatelessWidget implements PreferredSizeWidget {
final String title;
const PrimaryAppBar({
super.key,
required this.title,
});
@override
Widget build(BuildContext context) {
return AppBar(
title: Text(title),
actions: [
IconButton(
icon: const Icon(Icons.settings),
tooltip: 'Relay Management',
onPressed: () {
Navigator.pushNamed(context, AppRoutes.relayManagement);
},
),
],
);
}
@override
Size get preferredSize => const Size.fromHeight(kToolbarHeight);
}

Powered by TurnKey Linux.