🐛 Fix missing gap between sections in dashboard

This commit is contained in:
LittleSheep 2024-09-05 21:13:50 +08:00
parent cedd0b083a
commit c68138e516

View File

@ -51,6 +51,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
int? _currentPostsCount; int? _currentPostsCount;
Future<void> _pullPosts() async { Future<void> _pullPosts() async {
print(_lastRead.feedLastReadAt);
if (_lastRead.feedLastReadAt == null) return; if (_lastRead.feedLastReadAt == null) return;
log('[Dashboard] Pulling posts with pivot: ${_lastRead.feedLastReadAt}'); log('[Dashboard] Pulling posts with pivot: ${_lastRead.feedLastReadAt}');
final resp = await _posts.seeWhatsNew(_lastRead.feedLastReadAt!); final resp = await _posts.seeWhatsNew(_lastRead.feedLastReadAt!);
@ -195,7 +196,8 @@ class _DashboardScreenState extends State<DashboardScreen> {
), ),
).paddingSymmetric(horizontal: 8), ).paddingSymmetric(horizontal: 8),
const Divider(thickness: 0.3).paddingSymmetric(vertical: 8), const Divider(thickness: 0.3).paddingSymmetric(vertical: 8),
// Unread notifications
/// Unread notifications
Obx( Obx(
() => Column( () => Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -356,7 +358,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
), ),
) )
], ],
), ).paddingOnly(bottom: 12),
/// Unread messages part /// Unread messages part
if (_currentMessages?.isNotEmpty ?? false) if (_currentMessages?.isNotEmpty ?? false)
@ -463,7 +465,9 @@ class _DashboardScreenState extends State<DashboardScreen> {
), ),
) )
], ],
), ).paddingOnly(bottom: 12),
/// Footer
Column( Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [