How can I get the height of an AppBar in Flutter?
I am using the MarialApp Widget (\'package:flutter/material.dart\').
I have the height of my C
AppBar has a fixed height of 56.
You should create your own appbar implementing PreferredSizeWidget
class TestAppBar extends StatelessWidget implements PreferredSizeWidget {
@override
Widget build(BuildContext context) {
return AppBar(
title: Text('TEST'),
centerTitle: true,
);
}
@override
Size get preferredSize => Size.fromHeight(34);
}