From 1f713b5b2b20bfb41c3e8466ad87711d5248fe06 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 18 Nov 2025 12:57:21 +0800 Subject: [PATCH] :lipstick: Make captcha undismissable --- lib/screens/auth/captcha.native.dart | 1 + lib/screens/auth/captcha.web.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/screens/auth/captcha.native.dart b/lib/screens/auth/captcha.native.dart index 694b4727..2ef1f5c7 100644 --- a/lib/screens/auth/captcha.native.dart +++ b/lib/screens/auth/captcha.native.dart @@ -9,6 +9,7 @@ class CaptchaScreen extends ConsumerWidget { return showModalBottomSheet( context: context, isScrollControlled: true, + isDismissible: false, builder: (context) => const CaptchaScreen(), ); } diff --git a/lib/screens/auth/captcha.web.dart b/lib/screens/auth/captcha.web.dart index 997ede09..fe80717e 100644 --- a/lib/screens/auth/captcha.web.dart +++ b/lib/screens/auth/captcha.web.dart @@ -12,6 +12,7 @@ class CaptchaScreen extends ConsumerStatefulWidget { static Future show(BuildContext context) { return showModalBottomSheet( context: context, + isDismissible: false, isScrollControlled: true, builder: (context) => const CaptchaScreen(), );