increase tap area of 'select all from day' button
This commit is contained in:
parent
0be903b4b7
commit
39622c5049
1 changed files with 25 additions and 20 deletions
|
@ -182,22 +182,27 @@ class _LazyLoadingGalleryState extends State<LazyLoadingGallery> {
|
|||
}
|
||||
return Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(4, 14, 12, 8),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
getDayWidget(
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: getDayWidget(
|
||||
context,
|
||||
_files[0].creationTime,
|
||||
widget.smallerTodayFont,
|
||||
),
|
||||
ValueListenableBuilder(
|
||||
valueListenable: _showSelectAllButton,
|
||||
builder: (context, value, _) {
|
||||
return widget.selectedFiles.files.isEmpty
|
||||
? const SizedBox.shrink()
|
||||
: GestureDetector(
|
||||
),
|
||||
ValueListenableBuilder(
|
||||
valueListenable: _showSelectAllButton,
|
||||
builder: (context, value, _) {
|
||||
return widget.selectedFiles.files.isEmpty
|
||||
? const SizedBox.shrink()
|
||||
: GestureDetector(
|
||||
behavior: HitTestBehavior.translucent,
|
||||
child: SizedBox(
|
||||
width: 48,
|
||||
height: 44,
|
||||
child: ValueListenableBuilder(
|
||||
valueListenable: _shouldSelectAll,
|
||||
builder: (context, value, _) {
|
||||
|
@ -214,14 +219,14 @@ class _LazyLoadingGalleryState extends State<LazyLoadingGallery> {
|
|||
);
|
||||
},
|
||||
),
|
||||
onTap: () {
|
||||
_shouldSelectAll.value = !_shouldSelectAll.value;
|
||||
},
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
_shouldSelectAll.value = !_shouldSelectAll.value;
|
||||
},
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
_shouldRender ? _getGallery() : PlaceHolderWidget(_files.length),
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue