From a53c6100192ee2c112479d7e568b744dd81a2f83 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 9 Sep 2024 14:27:38 +0000 Subject: [PATCH] chore(automated): Lint commit and format --- .../notification_list_item_widgetbook.dart | 46 ++++++++----------- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/example/widgetbook/pages/components/notification_list_item_widgetbook.dart b/example/widgetbook/pages/components/notification_list_item_widgetbook.dart index 028f42b6..628d57a6 100644 --- a/example/widgetbook/pages/components/notification_list_item_widgetbook.dart +++ b/example/widgetbook/pages/components/notification_list_item_widgetbook.dart @@ -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( @@ -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), ), ), );