fix: padding on the poem and red dot time - #878
Conversation
|
|
|
| _ticker = Timer.periodic( | ||
| const Duration(minutes: 1), | ||
| (_) => setState(() {}), |
There was a problem hiding this comment.
HomeEventBanner starts its one-minute timer when the banner mounts, not at an event's start or end time. If the event changes state between ticks, the dot can appear late or stay visible for up to a minute after the event ends. Recheck at the event's time boundary.
Prompt To Fix With AI
This is a comment left during a code review.
Path: lib/features/home/presentation/widgets/home_header.dart
Line: 104-106
Comment:
**Live dot changes late**
`HomeEventBanner` starts its one-minute timer when the banner mounts, not at an event's start or end time. If the event changes state between ticks, the dot can appear late or stay visible for up to a minute after the event ends. Recheck at the event's time boundary.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| final languageCode = ref.watch(contentLanguageProvider); | ||
| final isTibetan = AppFontConfig.isTibetanLanguage(languageCode); | ||
| // Tibetan glyphs sit tall above the baseline, so give the title extra room. | ||
| final titleTopPadding = isTibetan ? 20.0 : 8.0; |
There was a problem hiding this comment.
PoemStoryPage chooses title spacing from the app's selected content language. The viewer can also fetch a poem by ID without a language filter. If that poem has a Tibetan title while another language is selected, it gets the tighter spacing, so the title can still look cramped. Base the spacing on the title being shown.
Prompt To Fix With AI
This is a comment left during a code review.
Path: lib/features/poems/presentation/widgets/poem_story_page.dart
Line: 72-75
Comment:
**Tibetan title stays cramped**
`PoemStoryPage` chooses title spacing from the app's selected content language. The viewer can also fetch a poem by ID without a language filter. If that poem has a Tibetan title while another language is selected, it gets the tighter spacing, so the title can still look cramped. Base the spacing on the title being shown.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
fix #817