Skip to content

Commit

Permalink
402102
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmer committed Oct 27, 2023
1 parent 0c42e36 commit 5084536
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
43 changes: 21 additions & 22 deletions lib/views/settings_view/settings_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

import '../../l10n/app_localizations.dart';
import '../../model/states/settings_state.dart';
import '../../model/tokens/push_token.dart';
import '../../utils/riverpod_providers.dart';
import '../license_view/license_view.dart';
Expand Down Expand Up @@ -182,27 +181,27 @@ class SettingsView extends ConsumerWidget {
onChanged: (value) => ref.read(settingsProvider.notifier).setPolling(value),
),
),
if (ref.watch(tokenProvider).hasHOTPTokens)
ListTile(
title: RichText(
text: TextSpan(
children: [
TextSpan(
text: AppLocalizations.of(context)!.hidePushTokens,
style: Theme.of(context).textTheme.titleMedium,
),
],
),
),
subtitle: Text(
AppLocalizations.of(context)!.hidePushTokensDescription,
overflow: TextOverflow.fade,
),
trailing: Switch(
value: ref.watch(settingsProvider).hidePushTokensState != HidePushTokens.notHidden,
onChanged: (value) => ref.read(settingsProvider.notifier).setHidePushTokens(isHidden: value),
),
)
// if (ref.watch(tokenProvider).hasHOTPTokens)
// ListTile(
// title: RichText(
// text: TextSpan(
// children: [
// TextSpan(
// text: AppLocalizations.of(context)!.hidePushTokens,
// style: Theme.of(context).textTheme.titleMedium,
// ),
// ],
// ),
// ),
// subtitle: Text(
// AppLocalizations.of(context)!.hidePushTokensDescription,
// overflow: TextOverflow.fade,
// ),
// trailing: Switch(
// value: ref.watch(settingsProvider).hidePushTokensState != HidePushTokens.notHidden,
// onChanged: (value) => ref.read(settingsProvider.notifier).setHidePushTokens(isHidden: value),
// ),
// )
],
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ publish_to: none
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 4.2.1+402101 # TODO Set the right version number
version: 4.2.1+402102 # TODO Set the right version number
# version: major.minor.build + 2x major|2x minor|3x build
# version: version number + build number (optional)
# android: build-name + versionCode
Expand Down

0 comments on commit 5084536

Please sign in to comment.