import 'package:flutter/material.dart'; /// Custom app bar widget class CustomAppBar extends StatelessWidget implements PreferredSizeWidget { final String title; final List? actions; final Widget? leading; final PreferredSizeWidget? bottom; const CustomAppBar({ super.key, required this.title, this.actions, this.leading, this.bottom, }); @override Widget build(BuildContext context) { return AppBar( title: Text(title), leading: leading, actions: actions, bottom: bottom, ); } @override Size get preferredSize => Size.fromHeight( kToolbarHeight + (bottom?.preferredSize.height ?? 0.0), ); }