fix(ui): fix keyboard covering textfield/dialog on mobile
What changed, and why it matters
This commit fixes a minor user-interface bug in a mobile dialog. When a user opens a text field inside a dialog on a phone, the on-screen keyboard can slide up and cover the field. The change adds padding equal to the keyboard's height so the dialog shifts out of the way. There is no security relevance in the diff itself.
No security action required. Treat as a normal UI/UX fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
A single-line change in lib/pages/shopinbit/shopinbit_settings_view.dart passes MediaQuery.of(context).viewInsets.bottom as keyboardPaddingAmount to a StackDialogBase widget when the app is not running on desktop. This is a standard Flutter pattern to avoid the soft keyboard obscuring input fields inside a modal dialog. No logic, validation, cryptography, networking, or authentication code is modified.
Changed components
lib/pages/shopinbit/shopinbit_settings_view.dart_VerifyKeyDialog widgetStackDialogBaseInspect captured patch +1 / −0
diff --git a/lib/pages/shopinbit/shopinbit_settings_view.dart b/lib/pages/shopinbit/shopinbit_settings_view.dart
index 8580f04..886ba4c 100644
--- a/lib/pages/shopinbit/shopinbit_settings_view.dart
+++ b/lib/pages/shopinbit/shopinbit_settings_view.dart
@@ -790,6 +790,7 @@ class _VerifyKeyDialogState extends State<_VerifyKeyDialog> {
child: ConditionalParent(
condition: !Util.isDesktop,
builder: (child) => StackDialogBase(
+ keyboardPaddingAmount: MediaQuery.of(context).viewInsets.bottom,
child: Column(
mainAxisSize: .min,
children: [
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.