Skip to content

Commit

Permalink
fix: ImpaktfullNavBarAction now can be used with default color
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Apr 7, 2024
1 parent 46e961f commit b618b24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# 0.5.2

## Fix

- ImpaktfullNavBarAction can now use the default color of the svg

# 0.5.1

## Fix

ImpaktfullBottomSheet with listview instead of vertical autolayout
- ImpaktfullBottomSheet with listview instead of vertical autolayout


# 0.5.0
Expand Down
4 changes: 3 additions & 1 deletion lib/src/components/screen/impaktfull_navbar_action.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import 'package:impaktfull_ui/impaktfull_ui.dart';
class ImpaktfullNavbarAction extends StatelessWidget {
final String svgIcon;
final VoidCallback? onTap;
final bool useThemeColor;

const ImpaktfullNavbarAction({
required this.svgIcon,
required this.onTap,
this.useThemeColor = true,
super.key,
});

Expand All @@ -21,7 +23,7 @@ class ImpaktfullNavbarAction extends StatelessWidget {
padding: const EdgeInsets.all(12),
child: ImpaktfullSvgIcon(
asset: svgIcon,
color: theme.colors.onPrimary,
color: useThemeColor ? theme.colors.onPrimary : null,
),
),
),
Expand Down

0 comments on commit b618b24

Please sign in to comment.