Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecoomber committed Sep 9, 2024
1 parent a333c32 commit 94c5ed4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions example/lib/pages/components/notification_list_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class NotificationListItemExample extends StatelessWidget {
final Image image = Image.network(
"https://i.ytimg.com/vi/KItsWUzFUOs/maxresdefault.jpg",
);
final colors = Zeta.of(context).colors;

return ExampleScaffold(
name: name,
Expand All @@ -32,7 +33,7 @@ class NotificationListItemExample extends StatelessWidget {
avatar: ZetaAvatar.initials(
initials: "JS",
lowerBadge: ZetaAvatarBadge.icon(
color: ZetaColors().surfacePositive,
color: colors.surfacePositive,
icon: Icons.check,
),
)),
Expand Down Expand Up @@ -63,7 +64,7 @@ class NotificationListItemExample extends StatelessWidget {
avatar: ZetaAvatar.initials(
initials: "JS",
lowerBadge: ZetaAvatarBadge.icon(
color: ZetaColors().surfacePositive,
color: colors.surfacePositive,
icon: Icons.check,
),
)),
Expand All @@ -87,7 +88,7 @@ class NotificationListItemExample extends StatelessWidget {
avatar: ZetaAvatar.initials(
initials: "JS",
lowerBadge: ZetaAvatarBadge.icon(
color: ZetaColors().surfacePositive,
color: colors.surfacePositive,
icon: Icons.check,
),
),
Expand Down
7 changes: 4 additions & 3 deletions test/src/components/chat_item/chat_item_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:intl/intl.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'package:path/path.dart';
import 'package:zeta_flutter/generated/generated.dart';
import 'package:zeta_flutter/zeta_flutter.dart';

import '../../../test_utils/test_app.dart';
Expand Down Expand Up @@ -402,12 +403,12 @@ void main() {
slidableActions: [
ZetaSlidableAction(
onPressed: () {},
color: ZetaColorBase.orange,
color: const ZetaPrimitivesLight().orange,
icon: Icons.star,
),
ZetaSlidableAction(
onPressed: () {},
color: ZetaColorBase.red,
color: const ZetaPrimitivesLight().red,
icon: Icons.delete,
),
],
Expand Down Expand Up @@ -487,7 +488,7 @@ void main() {
expect(diagnosticsZetaSlidableAction.finder('icon'), 'IconData(U+0E5F9)');
expect(diagnosticsZetaSlidableAction.finder('foregroundColor'), null);
expect(diagnosticsZetaSlidableAction.finder('backgroundColor'), null);
expect(diagnosticsZetaSlidableAction.finder('color'), ZetaColorBase.blue.toString());
expect(diagnosticsZetaSlidableAction.finder('color'), const ZetaPrimitivesLight().blue.toString());
expect(diagnosticsZetaSlidableAction.finder('semanticLabel'), 'null');
expect(diagnosticsZetaSlidableAction.finder('paleColor'), 'false');
});
Expand Down

0 comments on commit 94c5ed4

Please sign in to comment.