backgroundNoticeProfileNoticesPreview function
- @Preview(name: 'BackgroundNotice - Profile Notices', group: 'Background Notices', size: Size(450, 300))
Widget
backgroundNoticeProfileNoticesPreview()
Implementation
@Preview(
name: 'BackgroundNotice - Profile Notices',
group: 'Background Notices',
size: Size(450, 300),
)
Widget backgroundNoticeProfileNoticesPreview() {
return WidgetPreviewFrame(
child: Padding(
padding: const EdgeInsets.all(16),
child: Column(
spacing: 8,
mainAxisSize: MainAxisSize.min,
children: [
BackgroundNotice(
text: t.profile.notices.betaTesting,
noticeType: NoticeType.info,
),
BackgroundNotice(
text: t.profile.notices.passwordExpiring,
noticeType: NoticeType.warning,
),
BackgroundNotice(
text: t.profile.notices.connectionError,
noticeType: NoticeType.error,
),
],
),
),
);
}