Skip to content

Commit

Permalink
Show page name in the page editor
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Oct 16, 2024
1 parent a1325bc commit f3e194c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/widgets/inspector/editors/page_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ class _SelectedPage extends HookConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final pageType = ref.watch(pageTypeProvider(id));
final chapter = ref.watch(pageChapterProvider(id));
final pageName = ref.watch(pageNameProvider(id)) ?? "";
return Material(
borderRadius: BorderRadius.circular(4),
color: pageType.color,
Expand All @@ -243,7 +244,7 @@ class _SelectedPage extends HookConsumerWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
id.formatted,
pageName.formatted,
style: const TextStyle(color: Colors.white, fontSize: 13),
),
if (chapter.isNotEmpty)
Expand Down

0 comments on commit f3e194c

Please sign in to comment.