1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 14:29:22 +00:00
comunicmobile/lib/ui/widgets/custom_app_bar_size.dart
2022-03-11 16:41:29 +01:00

21 lines
481 B
Dart

import 'package:flutter/material.dart';
/// Customize the size of the AppBar
///
/// @author Pierre Hubert
/// Reduce the size of the appbar
class AppBarWrapper extends StatelessWidget implements PreferredSizeWidget {
final Widget appBar;
final double height;
const AppBarWrapper({required this.height, required this.appBar})
: super();
@override
Widget build(BuildContext context) => appBar;
@override
Size get preferredSize => Size.fromHeight(height);
}