Skip to content

Commit

Permalink
sharp font file
Browse files Browse the repository at this point in the history
  • Loading branch information
zeta-icons-bot authored and thelukewalton committed Apr 22, 2024
1 parent 17d2f06 commit 36eb204
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/lib/pages/assets/icons_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class _IconsExampleState extends State<IconsExample> {
Wrap(
spacing: 8,
runSpacing: 8,
children: iconsRounded.values.map((e) => Icon(e)).toList(),
children: iconsRound.values.map((e) => Icon(e)).toList(),
),
const SizedBox(height: 20),
Text('Sharp', style: ZetaTextStyles.bodyLarge),
Expand Down
2 changes: 1 addition & 1 deletion example/widgetbook/pages/assets/icon_widgetbook.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import '../../test/test_components.dart';

Widget iconsUseCase(BuildContext context) {
Map<String, IconData> icons =
((context.knobs.boolean(label: 'Rounded', initialValue: true)) ? iconsRounded : iconsSharp);
((context.knobs.boolean(label: 'Rounded', initialValue: true)) ? iconsRound : iconsSharp);

final Map<String, IconData> sortedIcons = Map.fromEntries(icons.entries.toList()
..sort((a, b) {
Expand Down
4 changes: 2 additions & 2 deletions example/widgetbook/utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:zeta_flutter/zeta_flutter.dart';

String iconLabelBuilder(IconData? value, [bool rounded = true]) {
return ((rounded
? iconsRounded.entries.firstWhere((element) => element.value == value)
? iconsRound.entries.firstWhere((element) => element.value == value)
: iconsSharp.entries.firstWhere((element) => element.value == value))
.key
.split('.')
Expand All @@ -14,7 +14,7 @@ String iconLabelBuilder(IconData? value, [bool rounded = true]) {
.join(' ');
}

List<IconData> iconOptions(rounded) => rounded ? iconsRounded.values.toList() : iconsSharp.values.toList();
List<IconData> iconOptions(rounded) => rounded ? iconsRound.values.toList() : iconsSharp.values.toList();

String enumLabelBuilder(Enum? value) => value?.name.split('.').last.capitalize() ?? '';

Expand Down
Binary file modified lib/src/assets/fonts/zeta-icons-sharp.ttf
Binary file not shown.

0 comments on commit 36eb204

Please sign in to comment.