Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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.