fixed text overflowing & slivers

This commit is contained in:
Fabian Freund
2024-06-16 13:22:03 +02:00
parent d7a65a5770
commit 9e361113d2
2 changed files with 20 additions and 8 deletions
@@ -62,13 +62,17 @@ class BangListScreen extends HookConsumerWidget {
}, },
); );
}, },
error: (error, stackTrace) => Center( error: (error, stackTrace) => SliverToBoxAdapter(
child: Center(
child: FailureWidget( child: FailureWidget(
title: 'Failed to load Bangs', title: 'Failed to load Bangs',
exception: error, exception: error,
), ),
), ),
loading: () => const Center(child: CircularProgressIndicator()), ),
loading: () => const SliverToBoxAdapter(
child: Center(child: CircularProgressIndicator()),
),
), ),
], ],
), ),
@@ -91,9 +91,17 @@ class BangDetails extends HookConsumerWidget {
label: Text(bangData.domain), label: Text(bangData.domain),
icon: const Icon(Icons.open_in_new), icon: const Icon(Icons.open_in_new),
), ),
Text( const SizedBox(
width: 8,
),
Expanded(
child: Text(
'!${bangData.trigger}', '!${bangData.trigger}',
style: theme.textTheme.titleSmall, style: theme.textTheme.titleSmall,
textAlign: TextAlign.right,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
), ),
], ],
), ),