fooder-app/lib/components/app_bar.dart

24 lines
627 B
Dart
Raw Permalink Normal View History

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);
}