🐛 Fix realm detail

This commit is contained in:
2025-08-18 11:51:44 +08:00
parent e5f2e2d146
commit f33b569221

View File

@@ -142,7 +142,9 @@ class RealmDetailScreen extends HookConsumerWidget {
error: (error, _) => Center(child: Text('Error: $error')),
data: (rooms) {
if (rooms.isEmpty) {
return const SliverToBoxAdapter(child: SizedBox.shrink());
return Text(
'dataEmpty',
).tr().padding(horizontal: 24, bottom: 12);
}
return Column(
children: [