feat(issue-1154, issue-851): diary UX changed, price added to a active plan card

This commit is contained in:
misha
2026-11-24 12:17:32 +03:00
parent 1e8c1ab2eb
commit ad122ed2f7
6 changed files with 436 additions and 133 deletions

View File

@@ -122,7 +122,10 @@ class _DiaryScreenContentState extends State<DiaryScreenContent> {
centerTitle: true,
),
body: SingleChildScrollView(
padding: const EdgeInsets.only(bottom: 16, top: 8),
padding: EdgeInsets.only(
bottom: 16,
top: widget.diaryId == null ? 0 : 8,
),
physics: const BouncingScrollPhysics(),
child: Column(
children: [
@@ -133,7 +136,12 @@ class _DiaryScreenContentState extends State<DiaryScreenContent> {
],
if (state is DiaryStateLoaded && _canShowInsights(state))
Padding(
padding: const EdgeInsets.fromLTRB(4, 12, 4, 12),
padding: EdgeInsets.fromLTRB(
4,
widget.diaryId == null ? 0 : 12,
4,
12,
),
child: _DiaryInsights(
slug: state.isConsultantView ? _ownerSlug(state) : null,
canAdd: !state.isConsultantView,
@@ -325,6 +333,7 @@ class _DiaryInsightsState extends State<_DiaryInsights> {
canAdd: widget.canAdd,
refreshToken: _refreshToken,
initialIntraDate: widget.diaryDate,
showShadow: false,
),
);
}