【发布时间】:2021-11-20 09:09:22
【问题描述】:
我正在制作这样的笔记应用:
如您所见,我的标题在前导和动作图标下方,但我想像这样将其反转:
我怎样才能做到这一点?这是我的代码:
SliverAppBar(
leading: Icon(
Icons.menu,
color: Colors.black,
),
actions: const [
Icon(Icons.search, color: Colors.black),
SizedBox(width: 8),
Icon(Icons.more_vert, color: Colors.black),
SizedBox(width: 14),
],
elevation: 2,
pinned: true,
floating: true,
backgroundColor: kLightBGColor,
expandedHeight: 150,
flexibleSpace: FlexibleSpaceBar(
title: Text(
'My Notes',
style: TextStyle(
color: Colors.grey.shade900,
fontWeight: FontWeight.w400,
),
),
centerTitle: true,
),
),
【问题讨论】:
标签: android flutter flutter-layout flutter-sliver