mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 06:59:21 +01:00
Refactoring
This commit is contained in:
parent
500ec4ab43
commit
d729834185
1 changed files with 15 additions and 17 deletions
|
@ -325,28 +325,26 @@ class _SelectableItemWidget extends StatelessWidget {
|
||||||
Positioned.fill(
|
Positioned.fill(
|
||||||
child: Container(
|
child: Container(
|
||||||
color: AppTheme.getSelectionOverlayColor(context),
|
color: AppTheme.getSelectionOverlayColor(context),
|
||||||
),
|
child: Align(
|
||||||
),
|
alignment: Alignment.center,
|
||||||
if (isSelected)
|
child: Icon(
|
||||||
Positioned.fill(
|
Icons.check_circle_outlined,
|
||||||
child: Align(
|
size: 32,
|
||||||
alignment: Alignment.center,
|
color: AppTheme.getSelectionCheckColor(context),
|
||||||
child: Icon(
|
),
|
||||||
Icons.check_circle_outlined,
|
|
||||||
size: 32,
|
|
||||||
color: AppTheme.getSelectionCheckColor(context),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned.fill(
|
if (onTap != null || onLongPress != null)
|
||||||
child: Material(
|
Positioned.fill(
|
||||||
type: MaterialType.transparency,
|
child: Material(
|
||||||
child: InkWell(
|
type: MaterialType.transparency,
|
||||||
onTap: onTap,
|
child: InkWell(
|
||||||
onLongPress: onLongPress,
|
onTap: onTap,
|
||||||
|
onLongPress: onLongPress,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue