sms_composer_sheet 1.0.3
sms_composer_sheet: ^1.0.3 copied to clipboard
A Flutter plugin for native SMS composer with beautiful bottom sheet UI. Supports iOS and Android with haptic feedback and error handling.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.3 - 2025-01-07 #
Added #
showWithPermission()- Recommended method with automatic Android permission handlingshowNative()- Always uses platform native SMS implementationshowCustom()- Custom UI with optional bottom sheet builder- Enhanced
show()withuseCustomBottomSheetandbottomSheetBuilderparameters
1.0.1 - 2025-11-05 #
Fixed #
- π§ Pub.dev compliance: Fixed package description length to meet pub.flutter-io.cn requirements (60-180 characters)
- π§ Documentation URL: Removed non-existent documentation URL until package is published
- π§ Code formatting: Applied
dart formatto all Dart files for consistent formatting - π§ Lint warnings: Addressed BuildContext async gap warnings with proper ignore comments
- π§ Package validation: Ensured all pub.flutter-io.cn validation requirements are met
Improved #
- π¦ Package metadata: Added topics for better discoverability on pub.flutter-io.cn
- π Code quality: Enhanced code formatting and documentation consistency
1.0.0 - 2025-11-05 #
Added #
- π Initial release of SMS Composer Sheet plugin
- π± Cross-platform SMS composer with unified API for iOS and Android
- π iOS native implementation using
MFMessageComposeViewController - π€ Android in-app bottom sheet composer (when context provided)
- π€ Android fallback to system SMS app (when context not provided)
- β Success notifications with automatic snackbar display
- β Comprehensive error handling with detailed error messages
- π Character counter with real-time updates and multi-SMS indicators
- π³ Haptic feedback for success and error states
- π Automatic permission handling with system dialog requests (Android)
- π Permission status checking with detailed user guidance
- π Manual permission request with user-friendly dialog prompts
- π Multiple recipients support
- π Pre-filled message body support
- π SMS capability detection across platforms
- π Long message support with automatic splitting (Android)
- π¨ Material Design bottom sheet with iOS-like styling
- β‘ Loading states with progress indicators
- π‘οΈ Input validation with meaningful error messages
Features #
SmsComposerSheet.show()- Display SMS composer with bottom sheet UISmsComposerSheet.showWithPermission()- Display SMS composer with automatic permission handlingSmsComposerSheet.canSendSms()- Check SMS capability on deviceSmsComposerSheet.checkPermissionStatus()- Get detailed permission status (Android)SmsComposerSheet.requestSmsPermission()- Request SMS permission with system dialog (Android)SmsComposerSheet.platformName- Get current platform nameSmsResultmodel with detailed operation feedbackSmsComposerWidget- Customizable Flutter SMS composer UI
Platform Support #
- β iOS 12.0+ - Native MFMessageComposeViewController
- β Android API 21+ - Custom bottom sheet + SmsManager integration
- β Flutter 3.3.0+ - Modern Flutter SDK support
Dependencies #
flutter: ">=3.3.0"dart: ">=3.0.0"
Documentation #
- π Comprehensive README with installation and usage examples
- π§ Developer documentation (CLAUDE.md) with architecture details
- π§ͺ Example app with complete demonstration
- β Unit tests and integration tests
- π API documentation with detailed method descriptions
Semantic Versioning Guide #
This project follows Semantic Versioning:
- MAJOR version (X.0.0): Breaking changes that require code updates
- MINOR version (0.X.0): New features that are backward compatible
- PATCH version (0.0.X): Bug fixes and improvements that are backward compatible