import 'package:flutter/material.dart'; class CustomAppBar extends StatelessWidget implements PreferredSizeWidget { final String title; final List actions; const CustomAppBar({ Key? key, required this.title, this.actions = const [], }) : super(key: key); @override Widget build(BuildContext context) { return AppBar( backgroundColor: Colors.black, title: Text( title, style: const TextStyle( color: Colors.white, fontWeight: FontWeight.bold, ), ), actions: actions, ); } @override Size get preferredSize => const Size.fromHeight(56.0); }