Files
lunasea/lib/modules/lidarr/core/state.dart
Jagandeep Brar 5d36aede4a [Release] v2.3.0 (230004) (#220)
* [Packages] Updated packages
* [Sonarr/Series] Switched to bottom navigation, removed sliver app bar
* [Sonarr/Series] Removed bottom padding from overview
* [README] Added AltStore, Removed Feedback, Updated Android APK Build (#213)
* [Snackbar] Fixed cases where iOS swipe-back would lock UI
* [Android/Back Button] Back button now shows drawer on primary routes instead of closing app
* [Wake on LAN] Added configuration to hive
* [Settings/Modules] Added Wake on LAN section
* [Wake on LAN] Added entry to drawer
* [Lidarr/Details] Removed sliver app bar, removed fanart, switched to bottom navigation bar
* [Radarr/Details] Removed sliver app bar, removed fanart, switched to bottom navigation bar
* [Wake on LAN] Show toast on action
* [Wake on LAN] Created RawDatagramSocket binding
* [WoL] Full support for Wake on LAN functionality
* [Semantics] Cleanup
* [TestFlight] v2.3.0 (230002)
* [Settings/Modules] Implemented settings UI for custom headers
* [Custom Headers] Finished UI implementation
* [Custom Headers] Integrated into API calls
* [TestFlight] v2.3.0 (230003)
* [Images] Attach custom headers to all network image requests
* [Everything] Many Changes (Read Notes) (#218)
    - Unified the structure of each module (core, routes, widgets at the root of every module)
    - Cleaned Most Remaining Dialogs (SABnzbd and NZBGet remain)
    - Reduced font-size across dialogs
    - Unified padding across all dialogs (that have been cleaned so far)
    - Changelog is now a routed page, not a dialog prompt
- SABnzbd: Fixed bug where setting priority to "stop" would cause a fatal crash
* [Networking] Added RegExp Validation for IPv4 & MAC Addresses
* [Networking] Improved network address classes
* Finished Dialog Rework
* [TestFlight] v2.3.0 (230004)
* [README] Updated README for v2.3.0
2020-06-14 23:58:49 -05:00

68 lines
2.1 KiB
Dart

import 'package:flutter/foundation.dart';
class LidarrModel extends ChangeNotifier {
String _searchFilter = '';
String get searchFilter => _searchFilter;
set searchFilter(String searchFilter) {
assert(searchFilter != null);
_searchFilter = searchFilter;
notifyListeners();
}
String _sortType = 'abc';
String get sortType => _sortType;
set sortType(String sortType) {
assert(sortType != null);
_sortType = sortType;
notifyListeners();
}
bool _sortAscending = true;
bool get sortAscending => _sortAscending;
set sortAscending(bool sortAscending) {
assert(sortAscending != null);
_sortAscending = sortAscending;
notifyListeners();
}
bool _hideUnmonitoredArtists = false;
bool get hideUnmonitoredArtists => _hideUnmonitoredArtists;
set hideUnmonitoredArtists(bool hideUnmonitoredArtists) {
assert(hideUnmonitoredArtists != null);
_hideUnmonitoredArtists = hideUnmonitoredArtists;
notifyListeners();
}
bool _hideUnmonitoredAlbums = false;
bool get hideUnmonitoredAlbums => _hideUnmonitoredAlbums;
set hideUnmonitoredAlbums(bool hideUnmonitoredAlbums) {
assert(hideUnmonitoredAlbums != null);
_hideUnmonitoredAlbums = hideUnmonitoredAlbums;
notifyListeners();
}
String _addSearchQuery = '';
String get addSearchQuery => _addSearchQuery;
set addSearchQuery(String addSearchQuery) {
assert(addSearchQuery != null);
_addSearchQuery = addSearchQuery;
notifyListeners();
}
int _navigationIndex = 0;
int get navigationIndex => _navigationIndex;
set navigationIndex(int navigationIndex) {
assert(navigationIndex != null);
_navigationIndex = navigationIndex;
notifyListeners();
}
int _artistNavigationIndex = 0;
int get artistNavigationIndex => _artistNavigationIndex;
set artistNavigationIndex(int artistNavigationIndex) {
assert(artistNavigationIndex != null);
_artistNavigationIndex = artistNavigationIndex;
notifyListeners();
}
}