TF-4354 Remove all logic related to Label Visibility in Settings
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
class SettingCacheManager {
|
||||
static const String _labelVisibilitySettingKey = 'LABEL_VISIBILITY';
|
||||
|
||||
const SettingCacheManager(this._sharedPreferences);
|
||||
|
||||
final SharedPreferences _sharedPreferences;
|
||||
|
||||
bool getLabelVisibility() {
|
||||
return _sharedPreferences.getBool(_labelVisibilitySettingKey) ?? true;
|
||||
}
|
||||
|
||||
Future<void> saveLabelVisibility(bool visible) async {
|
||||
await _sharedPreferences.setBool(_labelVisibilitySettingKey, visible);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user