test_platform_error 0.0.1 copy "test_platform_error: ^0.0.1" to clipboard
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.

3
likes
150
points
117
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to test Platformdispatcher via third party library. Supports Android and iOS.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on test_platform_error

Packages that implement test_platform_error