25 lines
683 B
Dart
25 lines
683 B
Dart
|
|
import 'package:fluro/fluro.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'pages/download.dart';
|
|
import 'store/store.dart';
|
|
import 'pages/home.dart';
|
|
|
|
class Routes {
|
|
static final router = FluroRouter();
|
|
|
|
static void configure() {
|
|
router.define('/', handler: new Handler(
|
|
handlerFunc: (BuildContext context, Map<String, List<String>> params) {
|
|
return Home(null);
|
|
}),
|
|
transitionType: TransitionType.fadeIn
|
|
);
|
|
router.define('/download', handler: new Handler(
|
|
handlerFunc: (BuildContext context, Map<String, List<String>> params) {
|
|
return Download();
|
|
}),
|
|
transitionType: TransitionType.inFromRight
|
|
);
|
|
}
|
|
} |