🐛 Fix realm detail
This commit is contained in:
@@ -142,7 +142,9 @@ class RealmDetailScreen extends HookConsumerWidget {
|
|||||||
error: (error, _) => Center(child: Text('Error: $error')),
|
error: (error, _) => Center(child: Text('Error: $error')),
|
||||||
data: (rooms) {
|
data: (rooms) {
|
||||||
if (rooms.isEmpty) {
|
if (rooms.isEmpty) {
|
||||||
return const SliverToBoxAdapter(child: SizedBox.shrink());
|
return Text(
|
||||||
|
'dataEmpty',
|
||||||
|
).tr().padding(horizontal: 24, bottom: 12);
|
||||||
}
|
}
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
|
Reference in New Issue
Block a user