feat (SSH page): Added server sorting, search, and history features (#1097)
* feat (SSH page): Added server sorting, search, and history features - Added sorting functionality to the SSH page, supporting sorting by name or date added - Added a server search feature, allowing searches by name, username, or IP address - Implemented a server access history feature, allowing users to view and clear the history - Added persistent storage for sorting options in Settings - Updated the multilingual files to support the new features * fix(ssh/tab): Fixed an issue where tabs were not refreshed after sorting Added _tabRN.notify() to refresh tabs after sorting, while also changing _TabBar from ConsumerWidget to StatelessWidget and fixing the sorting logic * fix(ssh/tab): Fixed an issue where tabs were not refreshed after sorting Added _tabRN.notify() to refresh tabs after sorting, while also changing _TabBar from ConsumerWidget to StatelessWidget and fixing the sorting logic * fix(ssh): Fixed the sorting functionality and optimized the UI display - Fixed performance issues caused by using `indexOf` during server sorting; switched to pre-built index mappings - Optimized divider colors to use theme colors - Removed unnecessary nested `Column` and `Expanded` structures - Replaced hard-coded blue with theme colors - Added error handling to display a snackbar - Ensured all `ValueNotifier` instances are properly released upon disposal
This commit is contained in:
@@ -1709,6 +1709,54 @@ abstract class AppLocalizations {
|
||||
/// In en, this message translates to:
|
||||
/// **'Sponsor'**
|
||||
String get sponsor;
|
||||
|
||||
/// No description provided for @sort.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Sort'**
|
||||
String get sort;
|
||||
|
||||
/// No description provided for @sortByName.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'By name'**
|
||||
String get sortByName;
|
||||
|
||||
/// No description provided for @sortByJoinTime.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'By join time'**
|
||||
String get sortByJoinTime;
|
||||
|
||||
/// No description provided for @ascending.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Ascending'**
|
||||
String get ascending;
|
||||
|
||||
/// No description provided for @descending.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Descending'**
|
||||
String get descending;
|
||||
|
||||
/// No description provided for @searchServer.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Search server'**
|
||||
String get searchServer;
|
||||
|
||||
/// No description provided for @serverHistory.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Server history'**
|
||||
String get serverHistory;
|
||||
|
||||
/// No description provided for @clearHistory.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Clear history'**
|
||||
String get clearHistory;
|
||||
}
|
||||
|
||||
class _AppLocalizationsDelegate
|
||||
|
||||
Reference in New Issue
Block a user