check
This commit is contained in:
@@ -404,15 +404,8 @@ class _CashierBrand extends ConsumerWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final store = ref.watch(currentStoreProvider);
|
||||
final user = ref.watch(currentUserProvider);
|
||||
final store = ref.watch(storeDisplayNameProvider);
|
||||
|
||||
// Which shop, not which product. See `_Brand` in the sidebar — a cashier
|
||||
// knows what app is open; what they cannot see is which outlet this till
|
||||
// is signed into.
|
||||
final title = store.isNotEmpty
|
||||
? store
|
||||
: (ref.watch(currentStoreProvider)?.name ?? 'Store');
|
||||
|
||||
return Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -426,8 +419,7 @@ class _CashierBrand extends ConsumerWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
maxLines: 1,
|
||||
store?.name ?? 'Nearle POS',
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
|
||||
Reference in New Issue
Block a user