test_platform_error 0.0.1
test_platform_error: ^0.0.1 copied to clipboard
A Flutter plugin to test Platformdispatcher via third party library. Supports Android and iOS.
test_platform_error #
A Flutter plugin for testing and demonstrating global error handling using PlatformDispatcher
.
This plugin provides a minimal implementation to simulate and capture uncaught errors at the platform level, useful for debugging or integrating custom error logging systems across Android and iOS.
Supports both Android and iOS platforms.
π§ Features #
- Provides a simple test interface to inspect
PlatformDispatcher
behavior. - Useful for debugging or wrapping native platform-specific functionality.
- Easy to extend with additional platform channels.
π Getting Started #
Add this plugin to your pubspec.yaml
:
dependencies:
test_platform_error: ^0.0.1
Then fetch the package:
flutter pub get
π¦ Usage
import 'package:test_platform_error/test_platform_error.dart';
void main() async { final result = await TestPlatformErrorPlugin.throwPlatformError(); print('throwPlatformError: $result'); }
π§ͺ Example See the example/ folder for a complete working Flutter app that demonstrates how to use this plugin.
To run it:
cd example flutter run π± Platform Support
Platform | Support |
---|---|
Android | β Supported |
iOS | β Supported |
Web | β Not yet |
macOS | β Not yet |
Windows | β Not yet |
Linux | β Not yet |
π License This project is licensed under the MIT License.
π¬ Feedback & Contributions If you encounter issues or have feature requests, please open an issue or submit a pull request on the GitHub repository:
β‘οΈ https://github.com/yourusername/test_platform_error
π‘ Tip: Donβt forget to add a valid LICENSE file (MIT or another), and a CHANGELOG.md before publishing.