mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Added options modal on top items screen
This commit is contained in:
parent
50630a56b8
commit
c7c50dfc97
3 changed files with 100 additions and 2 deletions
|
@ -8,6 +8,7 @@ class CustomListTile extends StatelessWidget {
|
|||
final IconData? icon;
|
||||
final Widget? trailing;
|
||||
final EdgeInsets? padding;
|
||||
final void Function()? onLongPress;
|
||||
|
||||
const CustomListTile({
|
||||
Key? key,
|
||||
|
@ -17,7 +18,8 @@ class CustomListTile extends StatelessWidget {
|
|||
this.onTap,
|
||||
this.icon,
|
||||
this.trailing,
|
||||
this.padding
|
||||
this.padding,
|
||||
this.onLongPress
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
|
@ -26,6 +28,7 @@ class CustomListTile extends StatelessWidget {
|
|||
color: Colors.transparent,
|
||||
child: InkWell(
|
||||
onTap: onTap,
|
||||
onLongPress: onLongPress,
|
||||
child: Padding(
|
||||
padding: padding ?? const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
|
||||
child: Row(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue