From eb12f571351cdfba0f1a451f5f62272b1c40e290 Mon Sep 17 00:00:00 2001 From: erinn Date: Wed, 23 Jun 2021 17:35:33 -0700 Subject: [PATCH] dualpane settings wiring --- lib/settings.dart | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/settings.dart b/lib/settings.dart index f14052f..137fcb7 100644 --- a/lib/settings.dart +++ b/lib/settings.dart @@ -19,6 +19,8 @@ class Settings extends ChangeNotifier { // explicitly set experiments to false until told otherwise... bool experimentsEnabled = false; HashMap 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);