Skip to content

Commit

Permalink
fix: always make pull-to-refresh triggerable (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon authored Nov 20, 2024
1 parent fb5038c commit 5ac2d49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/view/page/drive_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ class DrivePage extends HookConsumerWidget {
]),
child: CustomScrollView(
controller: controller,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
if (folders
case AsyncValue(
Expand Down
2 changes: 2 additions & 0 deletions lib/view/widget/drive_folder_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:misskey_dart/misskey_dart.dart';
import '../../i18n/strings.g.dart';
import '../../model/account.dart';
import '../../provider/api/drive_folders_notifier_provider.dart';
import '../../provider/selected_drive_files_notifier_provider.dart';
import '../../util/future_with_dialog.dart';
import '../dialog/confirmation_dialog.dart';
import '../dialog/text_field_dialog.dart';
Expand Down Expand Up @@ -83,6 +84,7 @@ class DriveFolderSheet extends ConsumerWidget {
.delete(folder.id),
message: t.misskey.removed,
);
ref.read(selectedDriveFilesNotifierProvider.notifier).removeAll();
if (!ref.context.mounted) return;
ref.context.pop();
}
Expand Down
1 change: 1 addition & 0 deletions lib/view/widget/paginated_list_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class PaginatedListView<T> extends HookConsumerWidget {
margin: const EdgeInsets.symmetric(horizontal: 8.0),
child: CustomScrollView(
controller: controller,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
if (header case final header?) header,
if (paginationState != null) ...[
Expand Down

0 comments on commit 5ac2d49

Please sign in to comment.