diff --git a/lib/screens/repeater_hub_screen.dart b/lib/screens/repeater_hub_screen.dart index ab15e01e..b23be5dc 100644 --- a/lib/screens/repeater_hub_screen.dart +++ b/lib/screens/repeater_hub_screen.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:meshcore_open/connector/meshcore_protocol.dart'; +import 'package:meshcore_open/connector/meshcore_connector.dart'; import 'package:provider/provider.dart'; import '../l10n/l10n.dart'; import '../models/contact.dart'; @@ -31,6 +32,7 @@ class RepeaterHubScreen extends StatelessWidget { final l10n = context.l10n; final scheme = Theme.of(context).colorScheme; final settingsService = context.watch(); + final connector = context.watch(); final chemistry = settingsService.batteryChemistryForRepeater( repeater.publicKeyHex, ); @@ -85,7 +87,10 @@ class RepeaterHubScreen extends StatelessWidget { ), const SizedBox(height: 4), Text( - repeater.pathLabel(l10n), + repeater.pathLabel( + l10n, + pathHashByteWidth: connector.pathHashByteWidth, + ), style: Theme.of(context).textTheme.bodySmall ?.copyWith(color: scheme.onSurfaceVariant), ), diff --git a/lib/widgets/room_login_dialog.dart b/lib/widgets/room_login_dialog.dart index a5e2555b..b88716f8 100644 --- a/lib/widgets/room_login_dialog.dart +++ b/lib/widgets/room_login_dialog.dart @@ -405,7 +405,10 @@ class _RoomLoginDialogState extends State { ), const SizedBox(height: 4), Text( - repeater.pathLabel(context.l10n), + repeater.pathLabel( + context.l10n, + pathHashByteWidth: connector.pathHashByteWidth, + ), style: TextStyle( fontSize: 11, color: scheme.onSurfaceVariant,