mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-11 08:59:36 +00:00
Add refresh button desktop
This commit is contained in:
parent
5a12c4c111
commit
c1e2a796af
1 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||||
|
@ -16,9 +18,9 @@ class HomeAppBar extends StatelessWidget {
|
||||||
final bool innerBoxScrolled;
|
final bool innerBoxScrolled;
|
||||||
|
|
||||||
const HomeAppBar({
|
const HomeAppBar({
|
||||||
Key? key,
|
super.key,
|
||||||
required this.innerBoxScrolled
|
required this.innerBoxScrolled
|
||||||
}) : super(key: key);
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -118,6 +120,14 @@ class HomeAppBar extends StatelessWidget {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
|
if (!(Platform.isAndroid || Platform.isIOS)) ...[
|
||||||
|
IconButton(
|
||||||
|
onPressed: () => statusProvider.getServerStatus(),
|
||||||
|
icon: const Icon(Icons.refresh_rounded),
|
||||||
|
tooltip: AppLocalizations.of(context)!.refresh,
|
||||||
|
),
|
||||||
|
const SizedBox(width: 8),
|
||||||
|
],
|
||||||
PopupMenuButton(
|
PopupMenuButton(
|
||||||
itemBuilder: (context) => [
|
itemBuilder: (context) => [
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue