Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gmalpha_flutter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
gmalpha_flutter
Commits
1c4cc3db
Commit
1c4cc3db
authored
Nov 05, 2019
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
083d23b8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
RouterCenterRestore.mark.dart
lib/Annotations/RouterCenterRestore.mark.dart
+14
-6
pubspec.yaml
pubspec.yaml
+1
-1
No files found.
lib/Annotations/RouterCenterRestore.mark.dart
View file @
1c4cc3db
...
@@ -5,15 +5,17 @@
...
@@ -5,15 +5,17 @@
// **************************************************************************
// **************************************************************************
//MainRouterImpl is resign : true
//MainRouterImpl is resign : true
//FindRouterImpl is resign : true
//BuriedImpl is resign : true
//BuriedImpl is resign : true
//AlbumRouterImpl is resign : true
//AlbumRouterImpl is resign : true
//NewMessageRouterImpl is resign : true
//NewMessageRouterImpl is resign : true
//UserRouterImpl is resign : true
//UserRouterImpl is resign : true
//WebRouterImpl 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/MainRouterImpl.dart"
;
import
"package:gmalpha_flutter/MainModel/MainRouter.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/BuriedImpl.dart"
;
import
"package:gmalpha_flutter/BuriedLib/BuriedRouter.dart"
;
import
"package:gmalpha_flutter/BuriedLib/BuriedRouter.dart"
;
import
"package:gmalpha_flutter/AlbumModel/AlbumRouterImpl.dart"
;
import
"package:gmalpha_flutter/AlbumModel/AlbumRouterImpl.dart"
;
...
@@ -28,8 +30,6 @@ import "package:gmalpha_flutter/WebModel/WebRouter.dart";
...
@@ -28,8 +30,6 @@ import "package:gmalpha_flutter/WebModel/WebRouter.dart";
import
"package:gmalpha_flutter/Annotations/RouterCenterRestore.dart"
;
import
"package:gmalpha_flutter/Annotations/RouterCenterRestore.dart"
;
import
"package:gmalpha_flutter/Annotations/RouterBaser.dart"
;
import
"package:gmalpha_flutter/Annotations/RouterBaser.dart"
;
class
RouterCenterImpl
{
class
RouterCenterImpl
{
Map
<
String
,
RouterBaser
>
map
;
Map
<
String
,
RouterBaser
>
map
;
...
@@ -55,6 +55,7 @@ class RouterCenterImpl {
...
@@ -55,6 +55,7 @@ class RouterCenterImpl {
void
init
()
{
void
init
()
{
map
.
putIfAbsent
(
"MainModel"
,
()
=>
MainRouterImpl
());
map
.
putIfAbsent
(
"MainModel"
,
()
=>
MainRouterImpl
());
map
.
putIfAbsent
(
"FindModel"
,
()
=>
FindRouterImpl
());
map
.
putIfAbsent
(
"buried_router"
,
()
=>
BuriedImpl
());
map
.
putIfAbsent
(
"buried_router"
,
()
=>
BuriedImpl
());
map
.
putIfAbsent
(
"albumModel"
,
()
=>
AlbumRouterImpl
());
map
.
putIfAbsent
(
"albumModel"
,
()
=>
AlbumRouterImpl
());
map
.
putIfAbsent
(
"NewMessageModel"
,
()
=>
NewMessageRouterImpl
());
map
.
putIfAbsent
(
"NewMessageModel"
,
()
=>
NewMessageRouterImpl
());
...
@@ -73,6 +74,13 @@ class RouterCenterImpl {
...
@@ -73,6 +74,13 @@ class RouterCenterImpl {
return
map
[
"MainModel"
]
as
MainRouter
;
return
map
[
"MainModel"
]
as
MainRouter
;
}
}
FindRouter
findFindRouter
()
{
if
(
map
[
"FindModel"
]
==
null
)
{
return
null
;
}
return
map
[
"FindModel"
]
as
FindRouter
;
}
BuriedRouter
findBuriedRouter
()
{
BuriedRouter
findBuriedRouter
()
{
if
(
map
[
"buried_router"
]
==
null
)
{
if
(
map
[
"buried_router"
]
==
null
)
{
return
null
;
return
null
;
...
@@ -80,11 +88,11 @@ class RouterCenterImpl {
...
@@ -80,11 +88,11 @@ class RouterCenterImpl {
return
map
[
"buried_router"
]
as
BuriedRouter
;
return
map
[
"buried_router"
]
as
BuriedRouter
;
}
}
FindRouter
findFind
Router
()
{
AlbumRouter
findAlbum
Router
()
{
if
(
map
[
"
Find
Model"
]
==
null
)
{
if
(
map
[
"
album
Model"
]
==
null
)
{
return
null
;
return
null
;
}
}
return
map
[
"
FindModel"
]
as
Find
Router
;
return
map
[
"
albumModel"
]
as
Album
Router
;
}
}
NewMessageRouter
findNewMessageRouter
()
{
NewMessageRouter
findNewMessageRouter
()
{
...
...
pubspec.yaml
View file @
1c4cc3db
...
@@ -39,7 +39,7 @@ dependencies:
...
@@ -39,7 +39,7 @@ dependencies:
gengmei_flutter_plugin
:
gengmei_flutter_plugin
:
git
:
git
:
url
:
'
git@git.wanmeizhensuo.com:linshengyu/flutter_plugin.git'
url
:
'
git@git.wanmeizhensuo.com:linshengyu/flutter_plugin.git'
ref
:
"
f07338187a83c511e93b6c06c9fb5ef69c73550c
"
ref
:
"
656e2fdd256f6da7588a9aba2d24662b2b18af8e
"
# gengmei_flutter_plugin:
# gengmei_flutter_plugin:
# path: /Users/apple/lsy/gengmei_flutter_plugin
# path: /Users/apple/lsy/gengmei_flutter_plugin
flutter_drag_scale
:
flutter_drag_scale
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment