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:
Justin Forseth 2025-01-29 14:02:54 -07:00 committed by GitHub
parent b287c0cbe8
commit 6e31ac4c75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 134 additions and 49 deletions

View file

@ -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(