nubank / nuvigator

A powerful routing abstraction over Flutter Navigator, with nested Navigator and Deeplinks
Apache License 2.0
274 stars 33 forks source link

Add support for multiple repeated query parameters #82

Closed leoiacovini closed 3 years ago

leoiacovini commented 3 years ago

It is possible to deepLinks having multiple repeated query parameters encoded in it. This usually means that this query parameter should be treated as a List instead of a single value. The previous implementation was choosing one of the values provided in this case and discarding the rest.

This change implements a backwards-compatible change, where if the provided DeepLink contains the representation of a list QueryParamter, it will be returned as such. If the query parameter is not repeated, it will be returned directly (and not within a single element list)