Skip to content

Conversation

@jvsena42
Copy link
Member

@jvsena42 jvsena42 commented Jan 22, 2026

Related to #692

This PR fixes the keyboard overlapping the input field in the Calculator widget preview screen.

Description

  • Replaces ScreenColumn with the .screen() modifier for more flexible inset handling
  • Adds keyboard visibility detection using keyboardAsState()
  • Hides the header section (title, icon, description, divider) with a shrink animation when the keyboard appears
  • Adds imePadding() to keep the buttons above the keyboard
  • Restructures CalculatorInput to use OutlinedTextField directly for better keyboard interaction

Preview

Screen_recording_20260122_115904.webm

QA Notes

  1. Navigate to Settings > Widgets > Bitcoin Calculator
  2. Tap on the Bitcoin or Fiat input field
  3. Verify:
    • Header section (title, icon, description) shrinks upward with animation
    • Calculator card moves to the top of the screen
    • Save/Delete buttons remain visible above the keyboard
  4. Dismiss the keyboard (tap outside or press back)
  5. Verify the header section expands back smoothly

@claude

This comment has been minimized.

@jvsena42 jvsena42 requested a review from ovitrif January 22, 2026 16:06
@jvsena42 jvsena42 self-assigned this Jan 22, 2026
Copy link
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 2 nits. Claude still can't understand correctly the true intent of the 2 rules about modifiers and especially that one trying to enforce passing modifier as the last argument to functions, in an attempt of trying to avoid this from getting merged unnoticed during reviews.

@ovitrif
Copy link
Collaborator

ovitrif commented Jan 22, 2026

@claude address the review comments in a new branch on the tip of this one, named like this one but with '-fix' suffix.

Also reword the rule about passing modifier as the last argument without trailing comma in an attempt to better enforce that rule.

@claude

This comment has been minimized.

@ovitrif
Copy link
Collaborator

ovitrif commented Jan 22, 2026

@claude I approve the pending commands on your last comment. Pls create the branch as prepared to be a PR targeting this one.

@claude

This comment has been minimized.

@synonymdev synonymdev deleted a comment from claude bot Jan 22, 2026
… into fix/calculator-preview-keyboard

# Conflicts:
#	app/src/main/java/to/bitkit/ui/screens/widgets/calculator/CalculatorPreviewScreen.kt
Copy link
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

@ovitrif ovitrif enabled auto-merge January 22, 2026 18:39
@ovitrif ovitrif merged commit f247556 into master Jan 22, 2026
14 checks passed
@ovitrif ovitrif deleted the fix/calculator-preview-keyboard branch January 22, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants