-
Notifications
You must be signed in to change notification settings - Fork 487
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
Conversation
|
||
/// To Provide padding to the action widget | ||
/// | ||
/// Defaults to const EdgeInsets.symmetric(horizontal: 15,vertical: 4,) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^
/// 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^
lib/src/showcase/showcase.dart
Outdated
/// - `titleAlignment`: Alignment of the title text within the tooltip | ||
/// (defaults to start). | ||
/// - `descriptionAlignment`: Alignment of the description text within | ||
/// the tooltip (defaults to start). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default values are wrong
lib/src/showcase/showcase.dart
Outdated
/// **Assertions:** | ||
/// | ||
/// - `overlayOpacity` must be between 0.0 and 1.0. | ||
/// - `onTargetClick` and `disposeOnTap` must be used together (one cannot | ||
/// exist without the other). |
There was a problem hiding this comment.
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove force unwrap
3025c0a
to
d45c173
Compare
a145d19
to
d45c173
Compare
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
fix:
,feat:
,docs:
etc).docs
and added dartdoc comments with///
.examples
ordocs
.Breaking Change?