mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Added show and hide top items
This commit is contained in:
parent
ed0bc65285
commit
3e152db6ac
7 changed files with 317 additions and 104 deletions
|
@ -7,16 +7,18 @@ class CustomSwitchListTile extends StatelessWidget {
|
|||
final String? subtitle;
|
||||
final bool? disabled;
|
||||
final EdgeInsets? padding;
|
||||
final IconData? leadingIcon;
|
||||
|
||||
const CustomSwitchListTile({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.value,
|
||||
required this.onChanged,
|
||||
required this.title,
|
||||
this.disabled,
|
||||
this.subtitle,
|
||||
this.padding
|
||||
}) : super(key: key);
|
||||
this.padding,
|
||||
this.leadingIcon,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -33,6 +35,13 @@ class CustomSwitchListTile extends StatelessWidget {
|
|||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
if (leadingIcon != null) ...[
|
||||
Icon(
|
||||
leadingIcon,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
],
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue