From 874beb943abb4515aa3ede4593bddee6fcd3016f Mon Sep 17 00:00:00 2001 From: TheOneWithTheBraid Date: Fri, 15 Jul 2022 07:18:10 +0200 Subject: [PATCH] chore: remove snapping sheet - remove snapping sheet Signed-off-by: TheOneWithTheBraid --- lib/pages/chat_list/chat_list.dart | 13 ------------- pubspec.lock | 9 --------- pubspec.yaml | 7 ------- 3 files changed, 29 deletions(-) diff --git a/lib/pages/chat_list/chat_list.dart b/lib/pages/chat_list/chat_list.dart index 6fde027d..b9210175 100644 --- a/lib/pages/chat_list/chat_list.dart +++ b/lib/pages/chat_list/chat_list.dart @@ -8,7 +8,6 @@ import 'package:flutter_gen/gen_l10n/l10n.dart'; import 'package:future_loading_dialog/future_loading_dialog.dart'; import 'package:matrix/matrix.dart'; import 'package:receive_sharing_intent/receive_sharing_intent.dart'; -import 'package:snapping_sheet/snapping_sheet.dart'; import 'package:uni_links/uni_links.dart'; import 'package:vrouter/vrouter.dart'; @@ -158,10 +157,6 @@ class ChatListController extends State with TickerProviderStateMixin { final StreamController _clientStream = StreamController.broadcast(); - SnappingSheetController snappingSheetController = SnappingSheetController(); - - ScrollController snappingSheetScrollContentController = ScrollController(); - Stream get clientStream => _clientStream.stream; void addAccountAction() => VRouter.of(context).to('/settings/account'); @@ -562,8 +557,6 @@ class ChatListController extends State with TickerProviderStateMixin { VRouter.of(context).to('/rooms'); setState(() { _activeSpacesEntry = null; - snappingSheetController = SnappingSheetController(); - snappingSheetScrollContentController = ScrollController(); selectedRoomIds.clear(); Matrix.of(context).setActiveClient(client); }); @@ -659,12 +652,6 @@ class ChatListController extends State with TickerProviderStateMixin { void _hackyWebRTCFixForWeb() { Matrix.of(context).voipPlugin?.context = context; } - - expandSpaces() { - snappingSheetController.snapToPosition( - const SnappingPosition.factor(positionFactor: 0.5), - ); - } } enum EditBundleAction { addToBundle, removeFromBundle } diff --git a/pubspec.lock b/pubspec.lock index ce2553bb..21484873 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1582,15 +1582,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.0" - snapping_sheet: - dependency: "direct main" - description: - path: "." - ref: listenable - resolved-ref: "2d9f2a40590c13aadfd226c2e41b08e155e6a92e" - url: "https://github.com/TheOneWithTheBraid/snapping_sheet.git" - source: git - version: "3.1.0" source_map_stack_trace: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 80b24b7e..dd2d4b1e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -76,7 +76,6 @@ dependencies: share_plus: ^4.0.9 shared_preferences: ^2.0.13 slugify: ^2.0.0 - snapping_sheet: ^3.1.0 swipe_to_action: ^0.2.0 uni_links: ^0.5.1 unifiedpush: ^4.0.0 @@ -152,9 +151,3 @@ dependency_overrides: git: url: https://github.com/xeinebiu/qr_code_scanner.git ref: fix_break_changes_platform - # wating for `Listenable` implementation - # Upstream pull request: https://github.com/AdamJonsson/snapping_sheet/pull/84 - snapping_sheet: - git: - url: https://github.com/TheOneWithTheBraid/snapping_sheet.git - ref: listenable