mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-15 06:22:48 +00:00
More changes
This commit is contained in:
parent
6f9b16e94f
commit
26d89730ef
8 changed files with 44 additions and 87 deletions
|
@ -307,9 +307,8 @@ class _ClientModalState extends State<ClientModal> {
|
|||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
const Icon(
|
||||
Icons.label_rounded,
|
||||
color: Theme.of(context).listTileTheme.iconColor,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
Column(
|
||||
|
@ -530,7 +529,7 @@ class _ClientModalState extends State<ClientModal> {
|
|||
Icon(
|
||||
Icons.public,
|
||||
color: useGlobalSettingsServices == false
|
||||
? Theme.of(context).listTileTheme.iconColor
|
||||
? null
|
||||
: Colors.grey,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
|
|
|
@ -161,8 +161,7 @@ class _CheckHostModalState extends State<CheckHostModal> {
|
|||
),
|
||||
),
|
||||
),
|
||||
if (resultWidget != null) Expanded(
|
||||
child: Padding(
|
||||
if (resultWidget != null) Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
top: 20,
|
||||
left: 20,
|
||||
|
@ -170,9 +169,7 @@ class _CheckHostModalState extends State<CheckHostModal> {
|
|||
),
|
||||
child: resultWidget,
|
||||
),
|
||||
),
|
||||
if (resultWidget == null) Expanded(
|
||||
child: Padding(
|
||||
if (resultWidget == null) Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
top: 20,
|
||||
left: 20,
|
||||
|
@ -186,7 +183,6 @@ class _CheckHostModalState extends State<CheckHostModal> {
|
|||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
@ -19,17 +19,16 @@ class FilterListTile extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 15),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
Icon(
|
||||
icon,
|
||||
size: 26,
|
||||
color: Theme.of(context).listTileTheme.iconColor,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
Column(
|
||||
Flexible(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
|
@ -40,9 +39,7 @@ class FilterListTile extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
const SizedBox(height: 5),
|
||||
SizedBox(
|
||||
width: MediaQuery.of(context).size.width-86,
|
||||
child: Text(
|
||||
Text(
|
||||
subtitle,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
|
@ -50,8 +47,8 @@ class FilterListTile extends StatelessWidget {
|
|||
fontWeight: bold == true ? FontWeight.bold : null
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
|
|
@ -218,7 +218,7 @@ class _FiltersListState extends State<FiltersList> {
|
|||
: 0.95;
|
||||
|
||||
ScaffoldMessenger.of(context).clearSnackBars();
|
||||
print(height);
|
||||
|
||||
showFlexibleBottomSheet(
|
||||
minHeight: 0.6,
|
||||
initHeight: 0.6,
|
||||
|
|
|
@ -57,7 +57,6 @@ class _FilterStatusModalState extends State<FilterStatusModal> {
|
|||
Icon(
|
||||
icon,
|
||||
size: 24,
|
||||
color: Theme.of(context).listTileTheme.iconColor,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
Text(
|
||||
|
|
|
@ -30,7 +30,6 @@ class LogListTile extends StatelessWidget {
|
|||
Icon(
|
||||
icon,
|
||||
size: 24,
|
||||
color: Theme.of(context).listTileTheme.iconColor,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
Column(
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// ignore_for_file: use_build_context_synchronously
|
||||
|
||||
import 'package:adguard_home_manager/widgets/custom_list_tile.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
|
@ -170,7 +171,7 @@ class _LogsFiltersModalWidgetState extends State<LogsFiltersModalWidget> {
|
|||
return Padding(
|
||||
padding: MediaQuery.of(context).viewInsets,
|
||||
child: Container(
|
||||
height: 380,
|
||||
height: 400,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).dialogBackgroundColor,
|
||||
borderRadius: const BorderRadius.only(
|
||||
|
@ -182,7 +183,7 @@ class _LogsFiltersModalWidgetState extends State<LogsFiltersModalWidget> {
|
|||
children: [
|
||||
Expanded(
|
||||
child: ListView(
|
||||
physics: 380 < MediaQuery.of(context).size.height
|
||||
physics: 400 < MediaQuery.of(context).size.height
|
||||
? const NeverScrollableScrollPhysics()
|
||||
: null,
|
||||
children: [
|
||||
|
@ -278,44 +279,11 @@ class _LogsFiltersModalWidgetState extends State<LogsFiltersModalWidget> {
|
|||
// ),
|
||||
// ),
|
||||
// ),
|
||||
Material(
|
||||
color: Colors.transparent,
|
||||
child: InkWell(
|
||||
CustomListTile(
|
||||
title: AppLocalizations.of(context)!.responseStatus,
|
||||
subtitle: "${translatedString[logsProvider.selectedResultStatus]}",
|
||||
onTap: openSelectFilterStatus,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.shield_rounded,
|
||||
size: 24,
|
||||
color: Theme.of(context).listTileTheme.iconColor,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.responseStatus,
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 5),
|
||||
Text(
|
||||
"${translatedString[logsProvider.selectedResultStatus]}",
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: Theme.of(context).listTileTheme.iconColor,
|
||||
),
|
||||
)
|
||||
],
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
icon: Icons.shield_rounded,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
@ -35,7 +35,6 @@ class CustomListTile extends StatelessWidget {
|
|||
if (icon != null) ...[
|
||||
Icon(
|
||||
icon,
|
||||
color: Theme.of(context).listTileTheme.iconColor,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue