Skip to content

Commit

Permalink
fix: popscope deprecation (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
SputNikPlop authored Nov 22, 2023
1 parent f5b716b commit a57035c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/components/emote_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ class EmotePickerWidget extends StatelessWidget {
final rowNumber =
MediaQuery.of(context).orientation == Orientation.portrait ? 6 : 4;

return WillPopScope(
onWillPop: () async {
return PopScope(
canPop: false,
onPopInvoked: (bool didPop) {
onEmoteSelected(null);
return false;
},
child: SizedBox(
height: 48 * rowNumber.toDouble(),
Expand Down

0 comments on commit a57035c

Please sign in to comment.