mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-23 23:44:44 +01:00
Refactoring
This commit is contained in:
parent
500ec4ab43
commit
d729834185
1 changed files with 15 additions and 17 deletions
|
@ -325,10 +325,6 @@ class _SelectableItemWidget extends StatelessWidget {
|
|||
Positioned.fill(
|
||||
child: Container(
|
||||
color: AppTheme.getSelectionOverlayColor(context),
|
||||
),
|
||||
),
|
||||
if (isSelected)
|
||||
Positioned.fill(
|
||||
child: Align(
|
||||
alignment: Alignment.center,
|
||||
child: Icon(
|
||||
|
@ -338,6 +334,8 @@ class _SelectableItemWidget extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
if (onTap != null || onLongPress != null)
|
||||
Positioned.fill(
|
||||
child: Material(
|
||||
type: MaterialType.transparency,
|
||||
|
@ -346,7 +344,7 @@ class _SelectableItemWidget extends StatelessWidget {
|
|||
onLongPress: onLongPress,
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue