Commit 1c4cc3db authored by 林生雨's avatar 林生雨

commit

parent 083d23b8
......@@ -5,15 +5,17 @@
// **************************************************************************
//MainRouterImpl is resign : true
//FindRouterImpl is resign : true
//BuriedImpl is resign : true
//AlbumRouterImpl is resign : true
//NewMessageRouterImpl is resign : true
//UserRouterImpl is resign : true
//WebRouterImpl is resign : true
import 'package:gmalpha_flutter/FindModel/FindRouter.dart';
import "package:gmalpha_flutter/MainModel/MainRouterImpl.dart";
import "package:gmalpha_flutter/MainModel/MainRouter.dart";
import "package:gmalpha_flutter/FindModel/FindRouterImpl.dart";
import "package:gmalpha_flutter/FindModel/FindRouter.dart";
import "package:gmalpha_flutter/BuriedLib/BuriedImpl.dart";
import "package:gmalpha_flutter/BuriedLib/BuriedRouter.dart";
import "package:gmalpha_flutter/AlbumModel/AlbumRouterImpl.dart";
......@@ -28,8 +30,6 @@ import "package:gmalpha_flutter/WebModel/WebRouter.dart";
import "package:gmalpha_flutter/Annotations/RouterCenterRestore.dart";
import "package:gmalpha_flutter/Annotations/RouterBaser.dart";
class RouterCenterImpl {
Map<String, RouterBaser> map;
......@@ -55,6 +55,7 @@ class RouterCenterImpl {
void init() {
map.putIfAbsent("MainModel", () => MainRouterImpl());
map.putIfAbsent("FindModel", () => FindRouterImpl());
map.putIfAbsent("buried_router", () => BuriedImpl());
map.putIfAbsent("albumModel", () => AlbumRouterImpl());
map.putIfAbsent("NewMessageModel", () => NewMessageRouterImpl());
......@@ -73,6 +74,13 @@ class RouterCenterImpl {
return map["MainModel"] as MainRouter;
}
FindRouter findFindRouter() {
if (map["FindModel"] == null) {
return null;
}
return map["FindModel"] as FindRouter;
}
BuriedRouter findBuriedRouter() {
if (map["buried_router"] == null) {
return null;
......@@ -80,11 +88,11 @@ class RouterCenterImpl {
return map["buried_router"] as BuriedRouter;
}
FindRouter findFindRouter() {
if (map["FindModel"] == null) {
AlbumRouter findAlbumRouter() {
if (map["albumModel"] == null) {
return null;
}
return map["FindModel"] as FindRouter;
return map["albumModel"] as AlbumRouter;
}
NewMessageRouter findNewMessageRouter() {
......
......@@ -39,7 +39,7 @@ dependencies:
gengmei_flutter_plugin:
git:
url: 'git@git.wanmeizhensuo.com:linshengyu/flutter_plugin.git'
ref: "f07338187a83c511e93b6c06c9fb5ef69c73550c"
ref: "656e2fdd256f6da7588a9aba2d24662b2b18af8e"
# gengmei_flutter_plugin:
# path: /Users/apple/lsy/gengmei_flutter_plugin
flutter_drag_scale:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment