2024-03-30 14:07:10 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class FAppBar extends StatelessWidget implements PreferredSizeWidget {
|
|
|
|
final List<Widget> actions;
|
|
|
|
|
|
|
|
const FAppBar({super.key, required this.actions});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
child: AppBar(
|
|
|
|
backgroundColor: Colors.transparent,
|
2024-04-04 19:03:41 +02:00
|
|
|
shadowColor: Colors.transparent,
|
|
|
|
surfaceTintColor: Colors.transparent,
|
2024-03-30 14:07:10 +01:00
|
|
|
elevation: 0,
|
|
|
|
actions: actions,
|
|
|
|
));
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Size get preferredSize => const Size.fromHeight(56);
|
|
|
|
}
|