我想增加CupertinoNavigationBar
身高。代码是这样的:
child: CustomCupertinoNavigationBar(
padding: EdgeInsetsDirectional.zero,
backgroundColor: Colors.white,
middle: Semantics(
label: "dashboard-main-page-title",
child: Text(
"My Title",
style: TextStyles.HankenSans_Bold_18_PrimaryBlack,
key: Key('dashboard-main-page-title'),
),
),
leading: Semantics(
label: "dashboard-back-button",
child: Material(
color: Colors.white,
child: CustomBackButton(
onPressHandler: () {
Navigation().openMyAccountPage();
},
),
),
),
);
我尝试创建自己的自定义 Cupertino。我复制了 cupertino/nav_bar.dart
and changed_kNavBarPersistentHeight
参数,const double _kNavBarPersistentHeight = 58.0;
但它导致 IOS 中有两个导航栏。有人可以帮我吗?非常感激。