Skip to content

Conversation

aditya-css
Copy link
Collaborator

Description

  • Added insideLeft and insideRight values in TooltipActionPosition enum.
  • Removed redundant parameters in ActionWidget.
  • Added proper assertions in Showcase.
  • Added mainAxisSize in TooltipActionConfig.

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

@aditya-css aditya-css requested a review from Copilot September 22, 2025 10:28
Copy link

@Copilot 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 adds horizontal positioning capabilities for tooltip action buttons, expanding from just inside/outside placement to also support left and right positioning within the tooltip container.

  • Added new enum values insideLeft and insideRight to TooltipActionPosition
  • Refactored tooltip content rendering to support both vertical and horizontal action layouts
  • Added mainAxisSize configuration parameter to TooltipActionConfig

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
lib/src/utils/enum.dart Added insideLeft and insideRight enum values with helper methods for positioning logic
lib/src/widget/action_widget.dart Removed redundant parameters and added conditional Row/Column layout based on position
lib/src/tooltip/tooltip_wrapper.dart Renamed class from ToolTipWidget to ToolTipWrapper and extracted content to separate widget
lib/src/tooltip/tooltip_content.dart New widget handling tooltip content layout with horizontal/vertical action positioning
lib/src/models/tooltip_action_config.dart Added mainAxisSize property with equality and hashCode updates
lib/src/showcase/showcase_controller.dart Updated action gap logic to handle horizontal positioning
lib/src/showcase/showcase.dart Added assertions for required title/description parameters
example/lib/main.dart Updated example to demonstrate insideRight positioning

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

required this.description,
required this.child,
this.title,
this.description,
Copy link
Preview

Copilot AI Sep 22, 2025

Choose a reason for hiding this comment

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

The description parameter should remain required to maintain backward compatibility. Making it optional without a major version bump could break existing implementations that rely on the required nature of this parameter.

Suggested change
this.description,
required this.description,

Copilot uses AI. Check for mistakes.

- Added `insideLeft` and `insideRight` values in `TooltipActionPosition` enum.
- Removed redundant parameters in `ActionWidget`.
- Added proper assertions in `Showcase`.
- Added `mainAxisSize` in `TooltipActionConfig`.
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.

1 participant