Merge pull request #679 from selfisekai/flutter-3.16

upgrade flutter to 3.16.0
This commit is contained in:
Krille-chan 2023-11-21 11:52:46 +01:00 committed by GitHub
commit 83ce07c574
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 87 additions and 63 deletions

View file

@ -136,16 +136,15 @@ class ChatView extends StatelessWidget {
final bottomSheetPadding = FluffyThemes.isColumnMode(context) ? 16.0 : 8.0;
final scrollUpBannerEventId = controller.scrollUpBannerEventId;
return WillPopScope(
onWillPop: () async {
return PopScope(
canPop: controller.selectedEvents.isEmpty && !controller.showEmojiPicker,
onPopInvoked: (pop) async {
if (pop) return;
if (controller.selectedEvents.isNotEmpty) {
controller.clearSelectedEvents();
return false;
} else if (controller.showEmojiPicker) {
controller.emojiPickerAction();
return false;
}
return true;
},
child: GestureDetector(
onTapDown: (_) => controller.setReadMarker(),