chore(legacy): hide wifi settings and forgot password entry points

Comment out the navigation entry points for the wifi settings flow
from the device settings list and for the forgot-password link from
the login screen while these flows wait for product sign-off. The
underlying screens and providers stay in place so re-enabling them is
a single uncomment.
This commit is contained in:
2026-04-17 11:16:08 +02:00
parent 9470f54867
commit ed41b82076
2 changed files with 17 additions and 17 deletions

View File

@@ -93,8 +93,8 @@ class LegacyLoginScreen extends ConsumerWidget {
},
),
SizedBox(height: 16),
_ForgotPassword(navigationContract: navigationContract),
SizedBox(height: 30),
// _ForgotPassword(navigationContract: navigationContract),
// SizedBox(height: 30),
_SignInSection(
theme: theme,
onSignIn: () {

View File

@@ -16,12 +16,12 @@ class SettingsScreen extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final theme = ref.watch(themePortProvider);
final color = theme.getColorFor(ThemeCode.legacyPrimary);
final hasWifi = ref.watch(
selectedDeviceProvider.select((d) {
final types = d.value?.capabilities?.commands;
return types?.types.contains('WIFI_SEARCH') ?? false;
}),
);
// final hasWifi = ref.watch(
// selectedDeviceProvider.select((d) {
// final types = d.value?.capabilities?.commands;
// return types?.types.contains('WIFI_SEARCH') ?? false;
// }),
// );
return LegacyPageLayout(
theme: theme,
@@ -108,15 +108,15 @@ class SettingsScreen extends ConsumerWidget {
text: I18n.sound,
color: color,
),
if (hasWifi)
_item(
context,
onPressed: () =>
navigationContract.pushTo(AppRoutes.wifiSettings),
icon: Icons.wifi_find_outlined,
text: I18n.wifiSettings,
color: color,
),
// if (hasWifi)
// _item(
// context,
// onPressed: () =>
// navigationContract.pushTo(AppRoutes.wifiSettings),
// icon: Icons.wifi_find_outlined,
// text: I18n.wifiSettings,
// color: color,
// ),
// _item(
// context,
// onPressed: () =>