Simplify mobile Solo and DM empty states (#8851)

Replace the embedded Solo onboarding block with “No chats yet.” Give
Solo and DM empty states matching left alignment and spacing below their
headings, with softer text at 65% opacity.

Validated with mobile formatting, analysis, the full mobile test suite,
and a Flutter widget preview measuring equal 16-point gaps below both
headings.

### Preview

Actual Flutter widgets with sample data; not a device capture.

![Solo and DM empty states with matching
spacing](https://github.com/user-attachments/assets/f044b7e5-b1ed-4d83-912d-a0fa119055d4)

---------

Signed-off-by: kenny lopez <klopez4212@gmail.com>
Co-authored-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz>
This commit is contained in:
klopez4212
2026-10-31 14:46:57 +00:00
committed by GitHub
parent 9c3ba83adb
commit 4de1b6aeac
3 changed files with 22 additions and 7 deletions

View File

@@ -112,7 +112,7 @@ class _ChannelsBody extends StatelessWidget {
Grid.gutter,
Grid.xs,
Grid.gutter,
0,
Grid.twelve,
),
child: Semantics(
header: true,

View File

@@ -367,10 +367,15 @@ class _ChannelSection extends StatelessWidget {
top: Grid.half,
bottom: Grid.half,
),
child: Text(
emptyLabel,
style: contentListBodyTextStyle.copyWith(
color: context.colors.onSurfaceVariant,
child: Align(
alignment: Alignment.centerLeft,
child: Text(
emptyLabel,
style: contentListBodyTextStyle.copyWith(
color: context.colors.onSurfaceVariant.withValues(
alpha: 0.65,
),
),
),
),
)

View File

@@ -270,8 +270,18 @@ class MePage extends HookConsumerWidget {
if (sliver && visible.isEmpty && organization.groups.isEmpty)
SliverToBoxAdapter(
child: Padding(
padding: const EdgeInsets.all(Grid.gutter),
child: _MeEmptyState(onNewChat: newChat),
padding: const EdgeInsets.symmetric(
horizontal: Grid.gutter,
vertical: Grid.half,
),
child: Text(
'No chats yet',
style: contentListBodyTextStyle.copyWith(
color: context.colors.onSurfaceVariant.withValues(
alpha: 0.65,
),
),
),
),
),
];