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: "目前新版的TAT仍在測試階段,若有問題歡迎和我們反映。",
noticeType: NoticeType.info,
),
BackgroundNotice(
text: "您的密碼將於7天後到期,請盡快更新以免無法登入。",
noticeType: NoticeType.warning,
),
BackgroundNotice(
text: "無法連接到伺服器,資料可能不正確。",
noticeType: NoticeType.error,
),
],
),
),
);
}