如何获得默认应用栏高度在颤动

代码示例

7
0

高度的应用栏颤动

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

扑加高度的应用栏

appBar: PreferredSize(
  preferredSize: Size.fromHeight(200.0),
  child: AppBar(
    automaticallyImplyLeading: false,
    flexibleSpace:  Image(
              image: AssetImage('assets/images/banner_image.jpg'),
              fit: BoxFit.cover,
            ),
            backgroundColor: Colors.transparent,
  )
),

其他语言

此页面有其他语言版本

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................