Skip to content

Conversation

@mulikruchi07
Copy link
Contributor

Description

This change fixes the UI pixel overflow on the Settings → Select Directory tile when using languages with long translations (for example Spanish). The two action buttons now support multiline labels and are forced to match each other’s size so they remain visually consistent and do not cause layout overflow.

Fixes #520

Screenshots

after#520

Checklist

  • Tests have been added or updated to cover the changes
  • Documentation has been updated to reflect the changes
  • Code follows the established coding style guidelines
  • All tests are passing

Copilot AI review requested due to automatic review settings December 9, 2025 13:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a UI overflow issue in the Settings → Select Directory tile that occurs when using languages with long translations (e.g., Spanish). The fix wraps the two action buttons in an IntrinsicHeight widget with Expanded children to enable multiline text labels and ensure both buttons match heights for visual consistency.

Key Changes:

  • Wrapped the button row in IntrinsicHeight with CrossAxisAlignment.stretch to enforce equal heights
  • Replaced const Spacer() with const SizedBox(width: 10) for consistent spacing
  • Added text wrapping properties (textAlign, softWrap, maxLines, overflow) to both button labels

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +172 to +184
child: Text(
SentenceManager(
currentLanguage:
controller.selectedLanguage.value)
.sentences
.settingsPageSetToDefault,
textAlign: TextAlign.center,
softWrap: true,
maxLines: 2,
style: TextStyle(
color: tColors.purpleShade,
),
),
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

The first button's Text widget is missing the overflow property, which is inconsistent with the second button at line 207. For consistency and to ensure proper text overflow behavior when translations are long, both buttons should have the same overflow handling. Consider adding overflow: TextOverflow.visible, after maxLines: 2, on line 180.

Copilot uses AI. Check for mistakes.
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.

Pixel Overflow in Settings Page

1 participant