fix error return type. update licenses.
This commit is contained in:
parent
b39baf4b8c
commit
7ec4b2ed0a
|
@ -1,3 +1,6 @@
|
|||
# 1.3.6
|
||||
- Small fix to error return type when no route match was made
|
||||
|
||||
# 1.3.5
|
||||
- add `pop` convenience
|
||||
- add `clearStack` flag so that you can clear the history when pushing a route
|
||||
|
|
16
LICENSE
16
LICENSE
|
@ -1,9 +1,9 @@
|
|||
Fluro
|
||||
|
||||
Created by Posse in NYC
|
||||
http://goposse.com
|
||||
Created by Yakka
|
||||
https://theyakka.com
|
||||
|
||||
Copyright (c) 2017 Posse Productions LLC.
|
||||
Copyright (c) 2018 Yakka LLC.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
@ -14,17 +14,17 @@ modification, are permitted provided that the following conditions are met:
|
|||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of the Posse Productions LLC, Posse nor the
|
||||
names of its contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
* Neither the name of the Yakka LLC, Yakka nor the names of its contributors may
|
||||
be used to endorse or promote products derived from this software without
|
||||
specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL POSSE PRODUCTIONS LLC (POSSE) BE LIABLE FOR ANY
|
||||
DISCLAIMED. IN NO EVENT SHALL YAKKA LLC (YAKKA) BE LIABLE FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
The brightest, hippest, coolest router for Flutter.
|
||||
|
||||
[![Version](https://img.shields.io/badge/version-1.3.5-blue.svg)](https://pub.dartlang.org/packages/fluro)
|
||||
[![Version](https://img.shields.io/badge/version-1.3.6-blue.svg)](https://pub.dartlang.org/packages/fluro)
|
||||
[![Build Status](https://travis-ci.org/theyakka/fluro.svg?branch=master)](https://travis-ci.org/theyakka/fluro)
|
||||
[![Coverage](https://codecov.io/gh/theyakka/fluro/branch/master/graph/badge.svg)](https://codecov.io/gh/theyakka/fluro)
|
||||
|
||||
|
@ -25,7 +25,7 @@ See CHANGELOG for all breaking (and non-breaking) changes.
|
|||
You should ensure that you add the router as a dependency in your flutter project.
|
||||
```yaml
|
||||
dependencies:
|
||||
fluro: "^1.3.5"
|
||||
fluro: "^1.3.6"
|
||||
```
|
||||
|
||||
You can also reference the git repo directly if you want:
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
import '../../config/application.dart';
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
import 'package:flutter/material.dart';
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* fluro
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class DemoResultComponent extends StatefulWidget {
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
import '../../helpers/color_helpers.dart';
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
import 'dart:async';
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
import 'package:fluro/fluro.dart';
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
import '../helpers/color_helpers.dart';
|
||||
|
@ -66,7 +67,7 @@ var demoFunctionHandler = new Handler(
|
|||
/// Handles deep links into the app
|
||||
/// To test on Android:
|
||||
///
|
||||
/// `adb shell am start -W -a android.intent.action.VIEW -d "fluro://deeplink?path=/message&mesage=fluro%20rocks%21%21" com.goposse.fluro`
|
||||
/// `adb shell am start -W -a android.intent.action.VIEW -d "fluro://deeplink?path=/message&mesage=fluro%20rocks%21%21" com.theyakka.fluro`
|
||||
var deepLinkHandler = new Handler(
|
||||
handlerFunc: (BuildContext context, Map<String, List<String>> params) {
|
||||
String colorHex = params["color_hex"]?.first;
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
import 'package:fluro/fluro.dart';
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
import 'package:flutter/material.dart';
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
import 'components/app/app_component.dart';
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
library fluro;
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
|
||||
|
@ -52,3 +53,8 @@ class RouteMatch {
|
|||
final RouteMatchType matchType;
|
||||
final String errorMessage;
|
||||
}
|
||||
|
||||
class RouteNotFoundException implements Exception {
|
||||
String message;
|
||||
RouteNotFoundException(this.message);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
|
||||
|
@ -78,7 +79,7 @@ class Router {
|
|||
} else {
|
||||
String error = "No registered route was found to handle '$path'.";
|
||||
print(error);
|
||||
completer.completeError(error);
|
||||
completer.completeError(RouteNotFoundException(error));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ name: fluro
|
|||
description: >
|
||||
Fluro is a Flutter routing library that adds flexible routing options like wildcards, named
|
||||
parameters and clear route definitions.
|
||||
version: 1.3.5
|
||||
version: 1.3.6
|
||||
author: Yakka, LLC <flutter@theyakka.com>
|
||||
homepage: https://github.com/theyakka/fluro
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
* fluro
|
||||
* A Posse Production
|
||||
* http://goposse.com
|
||||
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
|
||||
* Created by Yakka
|
||||
* https://theyakka.com
|
||||
*
|
||||
* Copyright (c) 2018 Yakka, LLC. All rights reserved.
|
||||
* See LICENSE for distribution and usage details.
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue