Skip to content

Commit 835edbb

Browse files
committed
fix: GdsTopNavigation.title에 대한 showIcons가 동작하지 않는 문제 수정
1 parent f01dff7 commit 835edbb

1 file changed

Lines changed: 19 additions & 11 deletions

File tree

packages/components/lib/src/navigation/gds_top_navigation.dart

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -374,18 +374,22 @@ class _Title extends StatelessWidget {
374374
onBack: onBack,
375375
body: Row(
376376
children: [
377-
if (showTitle) Text(title, style: GdsTypography.subtitle2.copyWith(color: colors.text.grayBold)),
377+
if (showTitle) ...[
378+
Text(title, style: GdsTypography.subtitle2.copyWith(color: colors.text.grayBold)),
379+
],
378380

379381
Expanded(child: SizedBox()),
380382

381-
GdsTopNavigation._buildNavigationIcons(
382-
context: context,
383-
onSearch: onSearch,
384-
onAvatar: onAvatar,
385-
onNotification: onNotification,
386-
avatarImageUrl: avatarImageUrl,
387-
hasNotification: hasNotification,
388-
),
383+
if (showIcons) ...[
384+
GdsTopNavigation._buildNavigationIcons(
385+
context: context,
386+
onSearch: onSearch,
387+
onAvatar: onAvatar,
388+
onNotification: onNotification,
389+
avatarImageUrl: avatarImageUrl,
390+
hasNotification: hasNotification,
391+
),
392+
],
389393
],
390394
),
391395
);
@@ -444,11 +448,15 @@ class _IconButton extends StatelessWidget {
444448
onBack: onBack,
445449
body: Row(
446450
children: [
447-
if (showTitle) Text(title, style: GdsTypography.subtitle2.copyWith(color: colors.text.grayBold)),
451+
if (showTitle) ...[
452+
Text(title, style: GdsTypography.subtitle2.copyWith(color: colors.text.grayBold)),
453+
],
448454

449455
Expanded(child: SizedBox()),
450456

451-
if (showIcons) Row(spacing: GdsSpacing.spacing16, children: iconRows),
457+
if (showIcons) ...[
458+
Row(spacing: GdsSpacing.spacing16, children: iconRows),
459+
],
452460
],
453461
),
454462
);

0 commit comments

Comments
 (0)