Skip to content

Commit f1af1fb

Browse files
committed
deps(automated): Update icons 2024-08-20 (#153)
1 parent fda5c05 commit f1af1fb

File tree

267 files changed

+30
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+30
-19
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/generated/generated.dart

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export 'icons/icons.g.dart';

lib/src/assets/icons.dart renamed to lib/generated/icons/icons.g.dart

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
1-
// ignore_for_file: public_member_api_docs, constant_identifier_names
1+
// ignore_for_file: constant_identifier_names
22
import 'package:flutter/material.dart';
33

44
// This file is automatically generated by the zeta-icons repository
55
// DO NOT MODIFY
66

7-
const zetaIconsVersion = '0.5.3';
7+
/// Current version of Zeta Icons
8+
const zetaIconsVersion = '0.5.5';
89

910
/// Zeta Icons. Full list of icons can be found at [Zeta Icons](https://zeta-icons.web.app/).
1011
/// {@category Assets}
1112
abstract class ZetaIcons {
13+
/// Default icon font name
1214
static const String family = 'zeta-icons';
15+
16+
/// Icon font name for round icons
1317
static const String familyRound = 'zeta-icons-round';
18+
19+
/// Icon font name for sharp icons
1420
static const String familySharp = 'zeta-icons-sharp';
21+
22+
/// Package name for zeta flutter
1523
static const String package = 'zeta_flutter';
1624

1725
// Icons

lib/src/assets/assets.dart

-1
This file was deleted.

lib/src/components/chat_item/chat_item.dart

+11-8
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ class ZetaChatItem extends ZetaStatelessWidget {
109109
final actionWith = slidableActionsCount * ZetaSpacing.xl_10;
110110
final maxButtonWidth = actionWith / maxScreenWidth;
111111
final extend = actionWith / maxScreenWidth;
112-
113-
return extend.clamp(0, maxButtonWidth);
112+
return extend.clamp(0, maxButtonWidth).toDouble();
114113
}
115114

116115
Widget? get _formatLeading {
@@ -154,12 +153,16 @@ class ZetaChatItem extends ZetaStatelessWidget {
154153
builder: (context, constraints) {
155154
return Slidable(
156155
enabled: actions.isNotEmpty,
157-
endActionPane: ActionPane(
158-
extentRatio:
159-
_getSlidableExtend(slidableActionsCount: actions.length, maxScreenWidth: constraints.maxWidth),
160-
motion: const ScrollMotion(),
161-
children: actions,
162-
),
156+
endActionPane: actions.isEmpty
157+
? null
158+
: ActionPane(
159+
extentRatio: _getSlidableExtend(
160+
slidableActionsCount: actions.length,
161+
maxScreenWidth: constraints.maxWidth,
162+
),
163+
motion: const ScrollMotion(),
164+
children: actions,
165+
),
163166
child: ColoredBox(
164167
color: highlighted ? colors.blue.shade10 : colors.surfacePrimary,
165168
child: Material(

lib/zeta_flutter.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// Zebra Design System (Zeta) - Flutter Component Library
22
library zeta_flutter;
33

4-
export 'src/assets/assets.dart';
4+
export 'generated/generated.dart';
55
export 'src/components/components.dart';
66
export 'src/theme/theme.dart';
77
export 'src/utils/utils.dart';

pubspec.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,21 @@ flutter:
4343
fonts:
4444
- family: IBMPlexSans
4545
fonts:
46-
- asset: lib/src/assets/fonts/IBMPlexSans-Light.otf
46+
- asset: lib/assets/fonts/IBMPlexSans-Light.otf
4747
weight: 300
48-
- asset: lib/src/assets/fonts/IBMPlexSans-Regular.otf
48+
- asset: lib/assets/fonts/IBMPlexSans-Regular.otf
4949
weight: 400
50-
- asset: lib/src/assets/fonts/IBMPlexSans-Medium.otf
50+
- asset: lib/assets/fonts/IBMPlexSans-Medium.otf
5151
weight: 500
5252
- family: zeta-icons
5353
fonts:
54-
- asset: lib/src/assets/fonts/zeta-icons-round.ttf
54+
- asset: lib/generated/icons/zeta-icons-round.ttf
5555
- family: zeta-icons-round
5656
fonts:
57-
- asset: lib/src/assets/fonts/zeta-icons-round.ttf
57+
- asset: lib/generated/icons/zeta-icons-round.ttf
5858
- family: zeta-icons-sharp
5959
fonts:
60-
- asset: lib/src/assets/fonts/zeta-icons-sharp.ttf
60+
- asset: lib/generated/icons/zeta-icons-sharp.ttf
6161
assets:
62-
- lib/src/assets/flags/
62+
- lib/assets/flags/
6363
uses-material-design: true

0 commit comments

Comments
 (0)