fluri
2.0.6, released 2 years ago by workiva.com
A fluent API for building and mutating URIs in Dart
WASM-ready
What it does
Fluri wraps Dart's Uri class to provide a mutable, chainable interface for setting scheme, host, path, and query parameters. It supports multi‑value query parameters and convenient helpers like appendToPath and setQueryParam.
AI-written summary of version 2.0.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need to construct complex URLs incrementally
- Want to modify existing URIs without recreating them
- Working with APIs that require dynamic query parameters
Skip it when
- You only need simple URI construction
- You prefer using Uri.replace directly for one‑off changes
Strengths
- Fluent, chainable syntax
- Preserves existing query parameters with merge
- Supports multi‑value parameters
- No external dependencies
Weaknesses
- No code generation or type safety beyond String
- Limited to URI manipulation only
- No built‑in validation or encoding helpers
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:fluri/fluri.dart';
var fluri = Fluri()
..scheme = 'https'
..host = 'example.com'
..path = 'path/to/resource'
..query = 'foo=true';
fluri.updateQuery({'bar': '10'});Alternatives
Packages that do the same job and could replace fluri.
- queue_it
A Dart queue with concurrency, retries and event listeners
71Compare - snippet_coder_utils
Utility package providing form widgets, data table helpers, image picker and color utilities for Flutter.
46Compare