feat: update motion toast close overlay callback#156
Merged
Conversation
c647f3d to
082013c
Compare
There was a problem hiding this comment.
Pull request overview
This PR improves the Motion Toast API by renaming the closeOverlay() method to dismiss() for better clarity and developer experience. The version is bumped to 2.15.0, dependencies are updated, and the README is comprehensively enhanced with better structure, examples, and documentation.
- Renamed
closeOverlay()method todismiss()with improved documentation - Updated package version from 2.14.0 to 2.15.0
- Enhanced README with comprehensive examples, API reference, and troubleshooting guide
Reviewed changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pubspec.yaml | Version bump to 2.15.0 and formatting improvements for description and screenshots |
| pubspec.lock | Dependency updates (fake_async, leak_tracker, meta, test_api, vector_math) and Dart SDK requirement update |
| lib/motion_toast.dart | Renamed closeOverlay() to dismiss() with added documentation comments |
| example/lib/main.dart | Added demonstration of programmatic dismiss functionality |
| example/pubspec.lock | Synced dependency updates with main package |
| example/ios/Flutter/ephemeral/flutter_lldbinit | Generated Flutter tooling file for iOS debugging |
| example/ios/Flutter/ephemeral/flutter_lldb_helper.py | Generated LLDB helper script for Flutter iOS debugging |
| README.md | Complete rewrite with improved structure, comprehensive examples, API reference table, and troubleshooting section |
| CHANGELOG.md | Added version 2.15.0 entry documenting the method rename |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
082013c to
0729ace
Compare
0729ace to
e58cf23
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.