mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(mobile): Add filter to people_picker.dart (#15771)
* Add filter to people_picker.dart * feat: styling --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
b287c0cbe8
commit
6e31ac4c75
3 changed files with 134 additions and 49 deletions
|
|
@ -16,6 +16,8 @@ class LargeLeadingTile extends StatelessWidget {
|
|||
this.trailing,
|
||||
this.selected = false,
|
||||
this.disabled = false,
|
||||
this.selectedTileColor,
|
||||
this.tileColor,
|
||||
});
|
||||
|
||||
final Widget leading;
|
||||
|
|
@ -27,6 +29,9 @@ class LargeLeadingTile extends StatelessWidget {
|
|||
final Widget? trailing;
|
||||
final bool selected;
|
||||
final bool disabled;
|
||||
final Color? selectedTileColor;
|
||||
final Color? tileColor;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return InkWell(
|
||||
|
|
@ -35,8 +40,9 @@ class LargeLeadingTile extends StatelessWidget {
|
|||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: selected
|
||||
? Theme.of(context).primaryColor.withAlpha(30)
|
||||
: Colors.transparent,
|
||||
? selectedTileColor ??
|
||||
Theme.of(context).primaryColor.withAlpha(30)
|
||||
: tileColor ?? Colors.transparent,
|
||||
borderRadius: BorderRadius.circular(borderRadius),
|
||||
),
|
||||
child: Row(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue