dualpane settings wiring

This commit is contained in:
erinn 2021-06-23 17:35:33 -07:00 committed by Sarah Jamie Lewis
parent ddb671cf6a
commit eb12f57135
1 changed files with 14 additions and 0 deletions

View File

@ -19,6 +19,8 @@ class Settings extends ChangeNotifier {
// explicitly set experiments to false until told otherwise...
bool experimentsEnabled = false;
HashMap<String, bool> experiments = HashMap.identity();
String _uiColumnModePortrait = "Single";
String _uiColumnModeLandscape = "Same";
bool blockUnknownConnections = false;
@ -134,6 +136,18 @@ class Settings extends ChangeNotifier {
notifyListeners();
}
String get uiColumnModePortrait => _uiColumnModePortrait;
set uiColumnModePortrait(String newval) {
this._uiColumnModePortrait = newval;
notifyListeners();
}
String get uiColumnModeLandscape => _uiColumnModeLandscape;
set uiColumnModeLandscape(String newval) {
this._uiColumnModeLandscape = newval;
notifyListeners();
}
/// Construct a default settings object.
Settings(this.locale, this.theme);