update container topic ui
This commit is contained in:
1 parent
4c4c7153d3
commit
11e7829d55
1 file changed
+4
-4
@@ -29,11 +29,10 @@ class ContainerTitle extends HookConsumerWidget {
|
||||
);
|
||||
|
||||
return topicAsync.when(
|
||||
skipLoadingOnReload: true,
|
||||
data: (data) =>
|
||||
data.mapNotNull(
|
||||
(name) => RichText(
|
||||
text: TextSpan(
|
||||
(name) => Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(text: name),
|
||||
const WidgetSpan(child: SizedBox(width: 4)),
|
||||
@@ -55,7 +54,8 @@ class ContainerTitle extends HookConsumerWidget {
|
||||
|
||||
return const Text('Untitled');
|
||||
},
|
||||
loading: () => const Skeletonizer(child: Text('container')),
|
||||
loading: () =>
|
||||
Skeletonizer(child: Text(topicAsync.valueOrNull ?? 'container')),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user