Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zyrouge/dart_protocol_registry
A Dart/Flutter package to register/query/remove URI Schemes without hassle.
https://github.com/zyrouge/dart_protocol_registry
dart flutter linux package protocol uri-scheme windows
Last synced: 6 days ago
JSON representation
A Dart/Flutter package to register/query/remove URI Schemes without hassle.
- Host: GitHub
- URL: https://github.com/zyrouge/dart_protocol_registry
- Owner: zyrouge
- License: mit
- Created: 2021-08-27T03:43:31.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-01T08:49:28.000Z (about 3 years ago)
- Last Synced: 2024-08-03T19:09:10.094Z (3 months ago)
- Topics: dart, flutter, linux, package, protocol, uri-scheme, windows
- Language: Dart
- Homepage: https://pub.dev/packages/protocol_registry
- Size: 12.7 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-flutter-desktop - protocol_registry - Register/query/remove URI Schemes without hassle. Available for Windows and Linux. (Packages)
README
# protocol_registry
Register/query/remove URI Schemes without hassle. Available for Windows and Linux.
## Installation
```bash
flutter pub add protocol_registry
```## Usage
```dart
/** Get the registry */
final ProtocolRegistryModel registry = getRegistry();/** Query */
await registry.find(scheme);
await registry.exists(scheme);/** Add */
await registry.add(scheme);/** Remove */
await registry.remove(scheme);
```Check [./example](./example) for examples.
## Additional information
This package has not been completely tested on Linux. MacOS schemes can be added by modifying the `Info.plist` file. Contributions are always welcomed.