Check out example codes for "height appbar flutter". It will help you in understanding the concepts better.

Code Example 1

appBar: PreferredSize(
  preferredSize: Size.fromHeight(100.0),
  child: AppBar(
    automaticallyImplyLeading: false, // hides leading widget
    flexibleSpace: SomeWidget(),
  )
),

Learn ReactJs, React Native from akashmittal.com