Skip to content

Commit 08664c5

Browse files
committed
fix: headerbar height, add padding to start and end items
1 parent 76c0150 commit 08664c5

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

lib/src/widgets/adw/header_bar.dart

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class HeaderBarStyle {
1212
const HeaderBarStyle({
1313
this.isTransparent = false,
1414
this.textStyle,
15-
this.height = 51,
15+
this.height = 47,
1616
this.autoPositionWindowButtons = true,
1717
this.padding = const EdgeInsets.only(left: 3, right: 5),
1818
this.titlebarSpace = 6,
@@ -181,7 +181,6 @@ class _AdwHeaderBarState extends State<AdwHeaderBar> {
181181
: null,
182182
border: !widget.style.isTransparent
183183
? Border(
184-
top: BorderSide(color: Theme.of(context).backgroundColor),
185184
bottom: BorderSide(color: context.borderColor),
186185
)
187186
: null,
@@ -213,14 +212,24 @@ class _AdwHeaderBarState extends State<AdwHeaderBar> {
213212
if (windowButtons[i] != null) windowButtons[i]!,
214213
SizedBox(width: widget.style.titlebarSpace),
215214
],
216-
...widget.start,
215+
...widget.start.map(
216+
(e) => Padding(
217+
padding: const EdgeInsets.only(right: 4),
218+
child: e,
219+
),
220+
),
217221
],
218222
),
219223
middle: widget.title,
220224
trailing: Row(
221225
mainAxisSize: MainAxisSize.min,
222226
children: [
223-
...widget.end,
227+
...widget.end.map(
228+
(e) => Padding(
229+
padding: const EdgeInsets.only(left: 4),
230+
child: e,
231+
),
232+
),
224233
if (hasWindowControls &&
225234
sep != null &&
226235
sep[1].split(',').isNotEmpty) ...[

0 commit comments

Comments
 (0)