Skip to content

Commit

Permalink
deps(automated): Update tokens (#176)
Browse files Browse the repository at this point in the history
* deps(automated): Update tokens 2024-09-09

* chore(automated): Lint commit and format

* deps(automated): Update tokens 2024-09-09

* chore(automated): Lint commit and format

---------

Co-authored-by: Zeta Tokens Bot <[email protected]>
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent 3ac64a7 commit 2bd38de
Show file tree
Hide file tree
Showing 7 changed files with 429 additions and 575 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,23 @@ import '../../utils/scaffold.dart';

Widget notificationListItemUseCase(BuildContext context) => WidgetbookScaffold(
builder: (context, _) => Padding(
padding: EdgeInsets.symmetric(
horizontal:
context.knobs.list(label: "Size", options: [100, 200, 400])),
padding: EdgeInsets.symmetric(horizontal: context.knobs.list(label: "Size", options: [100, 200, 400])),
child: ZetaNotificationListItem(
body: Text(
"New urgent message " * 300,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
attachment:
context.knobs.boolean(label: "Attachment", initialValue: false)
? Text("Spring-Donation-Drive.pdf")
: null,
title: context.knobs
.string(label: "Title", initialValue: "Urgent Notification"),
notificationTime: context.knobs.stringOrNull(
label: "Notification Time", initialValue: "Just Now"),
notificationRead: context.knobs
.boolean(label: "Notification Read", initialValue: false),
attachment: context.knobs.boolean(label: "Attachment", initialValue: false)
? Text("Spring-Donation-Drive.pdf")
: null,
title: context.knobs.string(label: "Title", initialValue: "Urgent Notification"),
notificationTime: context.knobs.stringOrNull(label: "Notification Time", initialValue: "Just Now"),
notificationRead: context.knobs.boolean(label: "Notification Read", initialValue: false),
leading: context.knobs.list(
label: 'Badge',
options: [
ZetaNotificationBadge.avatar(
avatar: ZetaAvatar.initials(initials: "JS")),
ZetaNotificationBadge.avatar(avatar: ZetaAvatar.initials(initials: "JS")),
ZetaNotificationBadge.icon(icon: ZetaIcons.check_circle),
ZetaNotificationBadge.image(
image: Image.network(
Expand All @@ -41,19 +34,16 @@ Widget notificationListItemUseCase(BuildContext context) => WidgetbookScaffold(
? "Icon"
: "Image",
),
action:
context.knobs.boolean(label: "Show action", initialValue: true)
? ZetaButton.outline(
label: "User Action",
onPressed: () {},
size: ZetaWidgetSize.small,
borderType: ZetaWidgetBorder.rounded,
)
: null,
showDivider:
context.knobs.boolean(label: "Show Divider", initialValue: false),
showBellIcon: context.knobs
.boolean(label: "Show Bell Icon", initialValue: true),
action: context.knobs.boolean(label: "Show action", initialValue: true)
? ZetaButton.outline(
label: "User Action",
onPressed: () {},
size: ZetaWidgetSize.small,
borderType: ZetaWidgetBorder.rounded,
)
: null,
showDivider: context.knobs.boolean(label: "Show Divider", initialValue: false),
showBellIcon: context.knobs.boolean(label: "Show Bell Icon", initialValue: true),
),
),
);
Loading

0 comments on commit 2bd38de

Please sign in to comment.