2024-03-28 16:25:49 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class FAppBar extends StatelessWidget implements PreferredSizeWidget {
|
2024-03-29 16:47:25 +01:00
|
|
|
final List<Widget> actions;
|
|
|
|
|
|
|
|
const FAppBar({super.key, required this.actions});
|
2024-03-28 16:25:49 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
var theme = Theme.of(context);
|
|
|
|
var colorScheme = theme.colorScheme;
|
|
|
|
|
|
|
|
return Padding(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
child: AppBar(
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
elevation: 0,
|
2024-03-29 16:47:25 +01:00
|
|
|
actions: actions,
|
2024-03-28 16:25:49 +01:00
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Size get preferredSize => Size.fromHeight(56);
|
|
|
|
}
|