mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-19 16:30:22 +00:00
Improved loading and error screens
This commit is contained in:
parent
65b367c630
commit
e88817d800
5 changed files with 120 additions and 78 deletions
|
@ -39,11 +39,13 @@ class LogsAppBar extends StatelessWidget with PreferredSizeWidget {
|
|||
return AppBar(
|
||||
title: Text(AppLocalizations.of(context)!.logs),
|
||||
actions: [
|
||||
TextButton.icon(
|
||||
onPressed: openFilersModal,
|
||||
icon: const Icon(Icons.filter_list_rounded),
|
||||
label: Text("${AppLocalizations.of(context)!.filters} ${getNumFiltersApplied() > 0 ? '(${getNumFiltersApplied().toString()})' : ''}"),
|
||||
),
|
||||
logsProvider.loadStatus == 1
|
||||
? TextButton.icon(
|
||||
onPressed: openFilersModal,
|
||||
icon: const Icon(Icons.filter_list_rounded),
|
||||
label: Text("${AppLocalizations.of(context)!.filters} ${getNumFiltersApplied() > 0 ? '(${getNumFiltersApplied().toString()})' : ''}"),
|
||||
)
|
||||
: const SizedBox(),
|
||||
const SizedBox(width: 5),
|
||||
],
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue