fluro/example/lib/config/routes.dart

29 lines
881 B
Dart
Raw Normal View History

/*
* fluro
* A Posse Production
* http://goposse.com
* Copyright (c) 2018 Posse Productions LLC. All rights reserved.
* See LICENSE for distribution and usage details.
*/
import 'package:fluro/fluro.dart';
2018-03-23 11:53:23 -04:00
import 'package:flutter/material.dart';
import './route_handlers.dart';
class Routes {
2018-03-23 11:53:23 -04:00
static String root = "/";
static String demoSimple = "/demo";
static String demoFunc = "/demo/func";
static String deepLink = "/message";
static void configureRoutes(Router router) {
2018-03-23 11:53:23 -04:00
router.notFoundHandler = new Handler(handlerFunc: (BuildContext context, Map<String, List<String>> params) {
print("ROUTE WAS NOT FOUND !!!");
});
router.define(root, handler: rootHandler);
router.define(demoSimple, handler: demoRouteHandler);
router.define(demoFunc, handler: demoFunctionHandler);
router.define(deepLink, handler: deepLinkHandler);
}
}