|
|
|
@ -272,11 +272,7 @@ class ImmichAssetGridViewState extends State<ImmichAssetGridView> {
|
|
|
|
Widget _buildAssetGrid() {
|
|
|
|
Widget _buildAssetGrid() {
|
|
|
|
final useDragScrolling = widget.renderList.totalAssets >= 20;
|
|
|
|
final useDragScrolling = widget.renderList.totalAssets >= 20;
|
|
|
|
|
|
|
|
|
|
|
|
void dragScrolling(bool active) {
|
|
|
|
void dragScrolling(bool active) => _scrolling = active;
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
_scrolling = active;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final listWidget = ScrollablePositionedList.builder(
|
|
|
|
final listWidget = ScrollablePositionedList.builder(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
@ -302,7 +298,6 @@ class ImmichAssetGridViewState extends State<ImmichAssetGridView> {
|
|
|
|
child: listWidget,
|
|
|
|
child: listWidget,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: listWidget;
|
|
|
|
: listWidget;
|
|
|
|
|
|
|
|
|
|
|
|
return widget.onRefresh == null
|
|
|
|
return widget.onRefresh == null
|
|
|
|
? child
|
|
|
|
? child
|
|
|
|
: RefreshIndicator(onRefresh: widget.onRefresh!, child: child);
|
|
|
|
: RefreshIndicator(onRefresh: widget.onRefresh!, child: child);
|
|
|
|
|