mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
More ui changes
This commit is contained in:
parent
5067122344
commit
d8897f1d74
19 changed files with 261 additions and 157 deletions
|
@ -27,16 +27,18 @@ class CustomRadioListTile extends StatelessWidget {
|
|||
child: InkWell(
|
||||
onTap: () => onChanged(value),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(20),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 24,
|
||||
vertical: 12
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
const SizedBox(width: 10),
|
||||
CustomRadio(
|
||||
value: value,
|
||||
groupValue: groupValue,
|
||||
backgroundColor: radioBackgroundColor,
|
||||
),
|
||||
const SizedBox(width: 30),
|
||||
const SizedBox(width: 24),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
@ -44,8 +46,9 @@ class CustomRadioListTile extends StatelessWidget {
|
|||
width: MediaQuery.of(context).size.width-110,
|
||||
child: Text(
|
||||
title,
|
||||
style: const TextStyle(
|
||||
fontSize: 16
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
color: Theme.of(context).colorScheme.onSurface
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -56,7 +59,7 @@ class CustomRadioListTile extends StatelessWidget {
|
|||
child: Text(
|
||||
subtitle!,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).listTileTheme.iconColor,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
fontSize: 14
|
||||
),
|
||||
),
|
||||
|
|
|
@ -26,7 +26,7 @@ class CustomSwitchListTile extends StatelessWidget {
|
|||
: () => onChanged(!value),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
top: 15, left: 24, right: 15, bottom: 15
|
||||
top: 12, left: 24, right: 12, bottom: 12
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
|
@ -41,8 +41,8 @@ class CustomSwitchListTile extends StatelessWidget {
|
|||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
color: disabled != null && disabled == true
|
||||
? Colors.grey
|
||||
: null,
|
||||
? Theme.of(context).colorScheme.onSurface.withOpacity(0.38)
|
||||
: Theme.of(context).colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -55,8 +55,8 @@ class CustomSwitchListTile extends StatelessWidget {
|
|||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: disabled != null && disabled == true
|
||||
? Colors.grey
|
||||
: Theme.of(context).listTileTheme.iconColor,
|
||||
? Theme.of(context).colorScheme.onSurfaceVariant.withOpacity(0.38)
|
||||
: Theme.of(context).colorScheme.onSurfaceVariant
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -16,7 +16,7 @@ class SectionLabel extends StatelessWidget {
|
|||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: padding ?? const EdgeInsets.all(25),
|
||||
padding: padding ?? const EdgeInsets.all(24),
|
||||
child: Text(
|
||||
label,
|
||||
style: TextStyle(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue