url_protocol
1.0.0, released 6 years ago by loren.dev
Register custom URL protocol handlers across supported platforms.
What it does
A unified library to register and unregister custom URL protocol handlers. It is primarily designed for desktop platforms requiring extra programmatic registration of URL handlers.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to register custom URL protocols programmatically on Windows
- You are building a Flutter desktop application that handles deep links or custom schemes
Skip it when
- You need instructions or support for Android, iOS, or macOS
- You need Linux support, which is currently coming soon
Strengths
- Provides a unified library approach for custom URL protocol registration
- Simple imperative API with registerProtocolHandler and unregisterProtocolHandler
Weaknesses
- Support for mobile platforms and Linux is currently missing or listed as a TODO
- Limited documentation beyond basic Windows usage
Setup
- Kind
- FFI (native library)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Not documented
import 'package:url_protocol/url_protocol.dart';
void main() {
registerProtocolHandler('test-url-protocol', arguments: ['-url', '%s']);
unregisterProtocolHandler('test-url-protocol');
}Alternatives
Packages that do the same job and could replace url_protocol.
- updater
Check for custom in-app updates and download APKs on Android.
49Compare - flutter_esp_ble_prov
Provision WiFi on Espressif ESP32 devices over Bluetooth Low Energy.
38Compare
Works with
Packages commonly used together with url_protocol: ones it builds on, ones built on it, and its own family.