Skip to content

refactor: 🔨 Refactor considering Dart 3 support #530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 16, 2025

Conversation

aditya-css
Copy link
Collaborator

Description

Added more class level documentation comments and upgraded minimum dart sdk support to version 3. Made code changes to utilise Dart 3 features.

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.


/// To Provide padding to the action widget
///
/// Defaults to const EdgeInsets.symmetric(horizontal: 15,vertical: 4,)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please remove the comma?


/// To Provide a text for action
///
/// If type is provided then it will take type name
Copy link
Collaborator

Choose a reason for hiding this comment

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

Revise the documentation for this property to ensure clarity.


/// To Provide a onTap for action
///
/// If type is provided then it will take type's OnTap
Copy link
Collaborator

Choose a reason for hiding this comment

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

^^

Comment on lines 71 to 74
/// This must be set if using baseline alignment. There is no default because there is no
/// way for the framework to know the correct baseline _a priori_.
/// This must be set if using baseline alignment. There is no default
/// because there is no way for the framework to know the correct baseline
/// _a priori_.
final TextBaseline? textBaseline;
Copy link
Collaborator

Choose a reason for hiding this comment

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

^^

Comment on lines 56 to 59
/// - `titleAlignment`: Alignment of the title text within the tooltip
/// (defaults to start).
/// - `descriptionAlignment`: Alignment of the description text within
/// the tooltip (defaults to start).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Default values are wrong

Comment on lines 135 to 139
/// **Assertions:**
///
/// - `overlayOpacity` must be between 0.0 and 1.0.
/// - `onTargetClick` and `disposeOnTap` must be used together (one cannot
/// exist without the other).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update Assertions

),
Theme.of(context)
.textTheme
.titleSmall!
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove force unwrap

@aditya-css aditya-css force-pushed the feature/dart_3_support branch from 3025c0a to d45c173 Compare May 16, 2025 10:23
@aditya-css aditya-css force-pushed the feature/dart_3_support branch from a145d19 to d45c173 Compare May 16, 2025 11:57
@Sahil-Simform Sahil-Simform merged commit 643eeb8 into master May 16, 2025
4 checks passed
@Sahil-Simform Sahil-Simform deleted the feature/dart_3_support branch May 16, 2025 11:58
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.

2 participants