29 lines
881 B
Dart
29 lines
881 B
Dart
/*
|
|
* 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';
|
|
import 'package:flutter/material.dart';
|
|
import './route_handlers.dart';
|
|
|
|
class Routes {
|
|
|
|
static String root = "/";
|
|
static String demoSimple = "/demo";
|
|
static String demoFunc = "/demo/func";
|
|
static String deepLink = "/message";
|
|
|
|
static void configureRoutes(Router router) {
|
|
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);
|
|
}
|
|
|
|
} |