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