diff --git a/CHANGELOG.md b/CHANGELOG.md index 16362bd..5b5b35c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.8 + +* Added padding to leading widget in TopBar + ## 0.0.7 * Implemented TonalSwitch component diff --git a/lib/src/components/material/top_bar.dart b/lib/src/components/material/top_bar.dart index db023c3..30d4e32 100644 --- a/lib/src/components/material/top_bar.dart +++ b/lib/src/components/material/top_bar.dart @@ -166,18 +166,21 @@ class TopBar extends StatelessWidget implements PreferredSizeWidget { if (automaticallyImplyLeading) { icon = GestureDetector( behavior: HitTestBehavior.opaque, - child: Row( - children: [ - const Icon(FlumeIcons.chevron_left, size: 24.0), - if (leadingLabel != null) - Text( - leadingLabel!, - style: context.theme.typography.header4 - .toTextStyle() - .copyWith(color: context.theme.colors.body), - overflow: TextOverflow.ellipsis, - ), - ], + child: Padding( + padding: EdgeInsets.only(left: context.theme.spacing.xs), + child: Row( + children: [ + const Icon(FlumeIcons.chevron_left, size: 24.0), + if (leadingLabel != null) + Text( + leadingLabel!, + style: context.theme.typography.header4 + .toTextStyle() + .copyWith(color: context.theme.colors.body), + overflow: TextOverflow.ellipsis, + ), + ], + ), ), onTap: () => usePlatformNavigation ? SystemNavigator.pop()