Size get preferredSize => new Size.fromHeight(kToolbarHeight); mediaquery code example
Example 1: flutter how to find the appbar size
var height = AppBar().preferredSize.height;
Example 2: get app bar size
MediaQuery.of(context).padding.top + kToolbarHeight