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
bd6fdfe4
Commit
bd6fdfe4
authored
Oct 22, 2019
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
16c7ab29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
215 additions
and
226 deletions
+215
-226
AttentionListItem.dart
lib/NewMessageModel/page/AttentionListItem.dart
+42
-43
common.dart
lib/NewMessageModel/page/common.dart
+0
-0
FocusListItem.dart
lib/NewMessageModel/page/focusPage/FocusListItem.dart
+26
-25
LikeListItem.dart
lib/NewMessageModel/page/likePage/LikeListItem.dart
+101
-90
GMBase.dart
lib/commonModel/GMBase.dart
+0
-1
AppBase.dart
lib/commonModel/base/AppBase.dart
+6
-2
main.dart
lib/main.dart
+33
-28
like_list.dart
lib/messageModel/like/like_list.dart
+0
-16
like_list_item.dart
lib/messageModel/like/like_list_item.dart
+0
-16
Anim.dart
lib/res/anim/Anim.dart
+1
-1
UserSettingModel.dart
lib/userModel/page/userSetting/UserSettingModel.dart
+6
-4
No files found.
lib/NewMessageModel/page/AttentionListItem.dart
View file @
bd6fdfe4
...
...
@@ -3,44 +3,40 @@ import 'package:flutter/material.dart';
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:gmalpha_flutter/NewMessageModel/service/remote/entity/AttentionEntity.dart'
;
import
'package:gmalpha_flutter/NewMessageModel/util/message_date.dart'
;
import
'package:gmalpha_flutter/commonModel/GMBase.dart'
;
import
'package:gmalpha_flutter/res/value/ALColors.dart'
;
class
AttentionListItem
extends
StatelessWidget
{
final
Data
item
;
AttentionListItem
(
this
.
item
);
Text
myText
(
String
text
,
Color
color
,
double
size
,
{
int
maxLines
=
1
,
bool
weight
=
false
}
)
{
Text
myText
(
String
text
,
Color
color
,
double
size
,
{
int
maxLines
=
1
,
bool
weight
=
false
})
{
return
Text
(
text
,
softWrap:
true
,
maxLines:
maxLines
,
overflow:
TextOverflow
.
ellipsis
,
style:
TextStyle
(
fontSize:
ScreenUtil
().
setSp
(
size
),
color:
color
,
height:
1.38
,
fontWeight:
weight
?
FontWeight
.
bold
:
FontWeight
.
normal
),
fontSize:
ScreenUtil
().
setSp
(
size
),
color:
color
,
height:
1.38
,
fontWeight:
weight
?
FontWeight
.
bold
:
FontWeight
.
normal
),
);
}
Widget
listItemHead
()
{
return
ClipOval
(
child:
Container
(
color:
ALColors
.
ColorE4E4E4
,
child:
CachedNetworkImage
(
width:
42.0
,
height:
42.0
,
imageUrl:
item
.
icon
,
fit:
BoxFit
.
cover
,
),
)
);
child:
Container
(
color:
ALColors
.
ColorE4E4E4
,
child:
CachedNetworkImage
(
width:
42.0
,
height:
42.0
,
imageUrl:
item
.
icon
,
fit:
BoxFit
.
cover
,
),
));
}
Widget
listItemInfo
()
{
...
...
@@ -50,16 +46,22 @@ class AttentionListItem extends StatelessWidget {
children:
<
Widget
>[
Container
(
margin:
EdgeInsets
.
only
(
left:
ScreenUtil
().
setWidth
(
10.0
)),
child:
myText
(
'
${item.title}
'
,
ALColors
.
Color464646
,
13.0
,
weight:
true
),
child:
myText
(
'
${item.title}
'
,
ALColors
.
Color464646
,
13.0
,
weight:
true
),
),
Padding
(
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
().
setWidth
(
10.0
),
top:
ScreenUtil
().
setHeight
(
4.0
)),
child:
myText
(
'
${item.content}
'
,
ALColors
.
Color666666
,
13.0
,
maxLines:
2
),
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
().
setWidth
(
10.0
),
top:
ScreenUtil
().
setHeight
(
4.0
)),
child:
myText
(
'
${item.content}
'
,
ALColors
.
Color666666
,
13.0
,
maxLines:
2
),
),
Padding
(
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
().
setWidth
(
10.0
),
top:
ScreenUtil
().
setHeight
(
3.0
)),
child:
myText
(
MessageDate
(
item
.
pushTime
).
diffTime
(),
ALColors
.
Color999999
,
10.0
)
)
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
().
setWidth
(
10.0
),
top:
ScreenUtil
().
setHeight
(
3.0
)),
child:
myText
(
MessageDate
(
item
.
pushTime
).
diffTime
(),
ALColors
.
Color999999
,
10.0
))
],
),
);
...
...
@@ -67,20 +69,21 @@ class AttentionListItem extends StatelessWidget {
Widget
listItemButton
()
{
return
Container
(
padding:
EdgeInsets
.
only
(
top:
ScreenUtil
().
setHeight
(
5.0
),
left:
ScreenUtil
().
setWidth
(
12.0
)),
padding:
EdgeInsets
.
only
(
top:
ScreenUtil
().
setHeight
(
5.0
),
left:
ScreenUtil
().
setWidth
(
12.0
)),
width:
ScreenUtil
().
setWidth
(
66.0
),
height:
ScreenUtil
().
setHeight
(
34.0
),
child:
OutlineButton
(
padding:
const
EdgeInsets
.
only
(
left:
0.0
,
right:
0.0
,),
borderSide:
BorderSide
(
color:
ALColors
.
Color323232
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
zero
),
onPressed:
()
{
// todo 跳转到原生页面 详情页面
},
child:
myText
(
'详情'
,
ALColors
.
Color323232
,
13.0
)
),
padding:
const
EdgeInsets
.
only
(
left:
0.0
,
right:
0.0
,
),
borderSide:
BorderSide
(
color:
ALColors
.
Color323232
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
zero
),
onPressed:
()
{
jumpToNative
(
'url_page'
,
{
"url"
:
item
.
url
});
},
child:
myText
(
'详情'
,
ALColors
.
Color323232
,
13.0
)
),
);
}
...
...
@@ -89,11 +92,7 @@ class AttentionListItem extends StatelessWidget {
return
Container
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
listItemHead
(),
listItemInfo
(),
listItemButton
()
],
children:
<
Widget
>[
listItemHead
(),
listItemInfo
(),
listItemButton
()],
),
);
}
...
...
lib/NewMessageModel/page/common.dart
View file @
bd6fdfe4
This diff is collapsed.
Click to expand it.
lib/NewMessageModel/page/focusPage/FocusListItem.dart
View file @
bd6fdfe4
...
...
@@ -2,45 +2,41 @@ import 'package:cached_network_image/cached_network_image.dart';
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:gmalpha_flutter/NewMessageModel/service/remote/entity/FocusPageEntity.dart'
;
import
'package:gmalpha_flutter/commonModel/base/AppBase.dart'
;
import
'package:gmalpha_flutter/res/value/ALColors.dart'
;
class
FocusListItem
extends
StatelessWidget
{
final
Followers
item
;
FocusListItem
(
this
.
item
);
Text
myText
(
String
text
,
Color
color
,
double
size
,
{
int
maxLines
=
1
,
bool
weight
=
false
}
)
{
Text
myText
(
String
text
,
Color
color
,
double
size
,
{
int
maxLines
=
1
,
bool
weight
=
false
})
{
return
Text
(
text
,
softWrap:
true
,
maxLines:
maxLines
,
overflow:
TextOverflow
.
ellipsis
,
style:
TextStyle
(
fontSize:
ScreenUtil
().
setSp
(
size
),
color:
color
,
height:
1.38
,
fontWeight:
weight
?
FontWeight
.
bold
:
FontWeight
.
normal
),
fontSize:
ScreenUtil
().
setSp
(
size
),
color:
color
,
height:
1.38
,
fontWeight:
weight
?
FontWeight
.
bold
:
FontWeight
.
normal
),
);
}
Widget
listItemHead
()
{
Widget
listItemHead
()
{
return
ClipOval
(
child:
Container
(
color:
ALColors
.
ColorE4E4E4
,
child:
CachedNetworkImage
(
width:
42.0
,
height:
42.0
,
imageUrl:
item
.
icon
,
fit:
BoxFit
.
cover
,
),
)
);
child:
Container
(
color:
ALColors
.
ColorE4E4E4
,
child:
CachedNetworkImage
(
width:
42.0
,
height:
42.0
,
imageUrl:
item
.
icon
,
fit:
BoxFit
.
cover
,
),
));
}
Widget
listItemInfo
()
{
...
...
@@ -51,7 +47,7 @@ class FocusListItem extends StatelessWidget {
Container
(
margin:
EdgeInsets
.
only
(
left:
ScreenUtil
().
setWidth
(
10.0
)),
padding:
EdgeInsets
.
only
(
top:
ScreenUtil
().
setHeight
(
10.0
)),
child:
myText
(
'
${item.username
??
""}
'
,
ALColors
.
Color666666
,
13.0
),
child:
myText
(
'
${item.username
??
""}
'
,
ALColors
.
Color666666
,
13.0
),
)
],
),
...
...
@@ -60,7 +56,12 @@ class FocusListItem extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
return
GestureDetector
(
onTap:
()
{
jumpToNative
(
'url_page'
,
{
"url"
:
'alpha://user_detail?user_id=
${item.id}
'
});
},
child:
Container
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
...
...
@@ -68,6 +69,6 @@ class FocusListItem extends StatelessWidget {
listItemInfo
(),
],
),
);
)
)
;
}
}
lib/NewMessageModel/page/likePage/LikeListItem.dart
View file @
bd6fdfe4
...
...
@@ -3,78 +3,92 @@ import 'package:flutter/material.dart';
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:gmalpha_flutter/NewMessageModel/service/remote/entity/LikePageEntity.dart'
;
import
'package:gmalpha_flutter/NewMessageModel/util/message_date.dart'
;
import
'package:gmalpha_flutter/commonModel/base/AppBase.dart'
;
import
'package:gmalpha_flutter/res/value/ALColors.dart'
;
class
LikeListItem
extends
StatelessWidget
{
final
Data
item
;
LikeListItem
(
this
.
item
);
Text
myText
(
String
text
,
Color
color
,
double
size
,
{
int
maxLines
=
1
,
bool
weight
=
false
}
)
{
Text
myText
(
String
text
,
Color
color
,
double
size
,
{
int
maxLines
=
1
,
bool
weight
=
false
})
{
return
Text
(
text
,
softWrap:
true
,
maxLines:
maxLines
,
overflow:
TextOverflow
.
ellipsis
,
style:
TextStyle
(
fontSize:
ScreenUtil
().
setSp
(
size
),
color:
color
,
height:
1.38
,
fontWeight:
weight
?
FontWeight
.
bold
:
FontWeight
.
normal
),
fontSize:
ScreenUtil
.
instance
.
setSp
(
size
),
color:
color
,
height:
1.38
,
fontWeight:
weight
?
FontWeight
.
bold
:
FontWeight
.
normal
),
);
}
Widget
listItemHead
()
{
return
ClipOval
(
child:
Container
(
color:
ALColors
.
ColorE4E4E4
,
child:
CachedNetworkImage
(
width:
42.0
,
height:
42.0
,
imageUrl:
item
.
icon
,
fit:
BoxFit
.
cover
,
),
)
);
Widget
listItemHead
()
{
return
GestureDetector
(
onTap:
()
{
jumpToNative
(
'url_page'
,
{
"url"
:
'alpha://user_detail?user_id=
${item.userId}
'
});
},
child:
ClipOval
(
child:
Container
(
color:
ALColors
.
ColorE4E4E4
,
child:
CachedNetworkImage
(
width:
42.0
,
height:
42.0
,
imageUrl:
item
.
icon
,
fit:
BoxFit
.
cover
,
),
)));
}
Widget
listItemRight
()
{
var
commentImg
;
if
(
item
.
type
!=
2
){
if
(
item
.
likeContent
.
content
==
null
&&
item
.
likeContent
.
contentType
!=
1
){
commentImg
=
item
.
likeContent
.
content
;
var
commentImg
;
if
(
item
.
type
!=
2
)
{
if
(
item
.
likeContent
.
content
==
null
&&
item
.
likeContent
.
contentType
!=
1
)
{
commentImg
=
item
.
likeContent
.
content
;
}
if
(
item
.
likeContent
.
content
!=
null
&&
item
.
likeContent
.
contentType
!=
1
){
if
(
item
.
likeContent
.
content
!=
null
&&
item
.
likeContent
.
contentType
!=
1
)
{
commentImg
=
'http://alpha.iyanzhi.com/topic/2019/08/16/63ef62d019-w'
;
}
}
return
Container
(
child:
Container
(
color:
ALColors
.
ColorE4E4E4
,
child:
CachedNetworkImage
(
width:
42.0
,
height:
42.0
,
imageUrl:
commentImg
,
fit:
BoxFit
.
cover
,
),
)
);
return
GestureDetector
(
onTap:
()
{
if
(
item
.
likeContent
.
type
==
0
)
{
jumpToNative
(
'url_page'
,
{
"url"
:
"alpha://topic_detail?topic_id=
${item.likeContent.id}
"
});
}
else
if
(
item
.
likeContent
.
type
==
1
)
{
jumpToNative
(
'url_page'
,
{
"url"
:
"alpha://topic_detail?call_keyboard=1&open_comment=1&topic_id=
${item.likeContent.id}
"
});
}
},
child:
Container
(
child:
Container
(
color:
ALColors
.
ColorE4E4E4
,
child:
CachedNetworkImage
(
width:
42.0
,
height:
42.0
,
imageUrl:
commentImg
,
fit:
BoxFit
.
cover
,
),
)));
}
Widget
listItemInfo
()
{
var
commentInfo
;
var
commenTime
;
if
(
item
.
type
!=
2
){
if
(
item
.
likeContent
.
type
==
0
){
commentInfo
=
'赞了你的回答'
;
}
else
{
commentInfo
=
'赞了你的评论'
;
var
commentInfo
;
var
commenTime
;
if
(
item
.
type
!=
2
)
{
if
(
item
.
likeContent
.
type
==
0
)
{
commentInfo
=
'赞了你的回答'
;
}
else
{
commentInfo
=
'赞了你的评论'
;
}
commenTime
=
MessageDate
(
item
.
time
).
diffTime
();
}
...
...
@@ -83,14 +97,18 @@ class LikeListItem extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Container
(
margin:
EdgeInsets
.
only
(
left:
ScreenUtil
().
setWidth
(
10.0
)),
padding:
EdgeInsets
.
only
(
top:
ScreenUtil
().
setHeight
(
10.0
)),
child:
myText
(
'
${item.name??""}${item.content??""}${commentInfo??""}
'
,
ALColors
.
Color666666
,
13.0
),
margin:
EdgeInsets
.
only
(
left:
ScreenUtil
.
instance
.
setWidth
(
16.0
)),
padding:
EdgeInsets
.
only
(
top:
ScreenUtil
.
instance
.
setHeight
(
10.0
)),
child:
myText
(
'
${item.name ?? ""}${item.content ?? ""}${commentInfo ?? ""}
'
,
ALColors
.
Color666666
,
13.0
),
),
Padding
(
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
().
setWidth
(
10.0
),
top:
ScreenUtil
().
setHeight
(
3.0
)),
child:
myText
(
'
${commenTime??""}
'
,
ALColors
.
Color999999
,
10.0
)
)
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
.
instance
.
setWidth
(
16.0
),
top:
ScreenUtil
.
instance
.
setHeight
(
3.0
)),
child:
myText
(
'
${commenTime ?? ""}
'
,
ALColors
.
Color999999
,
10.0
))
],
),
);
...
...
@@ -98,48 +116,41 @@ class LikeListItem extends StatelessWidget {
Widget
listItemButton
()
{
return
Container
(
padding:
EdgeInsets
.
only
(
top:
ScreenUtil
().
setHeight
(
5.0
),
left:
ScreenUtil
().
setWidth
(
12.0
)),
width:
ScreenUtil
().
setWidth
(
54.0
),
height:
ScreenUtil
().
setHeight
(
29.0
),
padding:
EdgeInsets
.
only
(
top:
ScreenUtil
.
instance
.
setHeight
(
5.0
),
left:
ScreenUtil
.
instance
.
setWidth
(
12.0
)),
width:
ScreenUtil
.
instance
.
setWidth
(
54.0
),
height:
ScreenUtil
.
instance
.
setHeight
(
29.0
),
child:
OutlineButton
(
padding:
const
EdgeInsets
.
only
(
left:
0.0
,
right:
0.0
,),
borderSide:
BorderSide
(
color:
ALColors
.
Color323232
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
zero
),
onPressed:
()
{
// todo 跳转到原生页面 详情页面
},
child:
myText
(
'查看'
,
ALColors
.
Color323232
,
13.0
)
),
padding:
const
EdgeInsets
.
only
(
left:
0.0
,
right:
0.0
,
),
borderSide:
BorderSide
(
color:
ALColors
.
Color323232
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
zero
),
onPressed:
()
{
jumpToNative
(
'url_page'
,
{
"url"
:
"alpha://pictorial_detail?pictorial_id=
${item.likeContent.id}
&show_reply=
${true}
"
});
},
child:
myText
(
'查看'
,
ALColors
.
Color323232
,
13.0
)),
);
}
@override
Widget
build
(
BuildContext
context
)
{
if
(
item
.
type
==
2
){
return
Container
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
listItemHead
(),
listItemInfo
(),
listItemButton
()
],
),
);
}
else
{
return
Container
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
listItemHead
(),
listItemInfo
(),
listItemRight
()
],
),
);
}
return
Container
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
listItemHead
(),
listItemInfo
(),
item
.
likeContent
==
null
?
Container
()
:
item
.
likeContent
.
type
==
2
?
listItemButton
()
:
listItemRight
()
],
),
);
}
}
lib/commonModel/GMBase.dart
View file @
bd6fdfe4
...
...
@@ -13,7 +13,6 @@ export 'live/BaseModel.dart';
export
'live/LiveData.dart'
;
export
'net/Api.dart'
;
export
'net/DioUtil.dart'
;
export
'net/Responce/SimpleResponce.dart'
;
export
'net/ALNetWork.dart'
;
export
'picker/loadingPicker.dart'
;
export
'picker/base/BaseCenterPicker.dart'
;
lib/commonModel/base/AppBase.dart
View file @
bd6fdfe4
...
...
@@ -35,7 +35,7 @@ void jumpToNative(String jumpToName, Map params) {
platform
.
invokeMethod
(
"FLUTTER_TO_NATIVE"
,
map
);
}
void
jumpToFlutter
(
String
jumpToName
,
Map
params
)
{
void
jumpToFlutter
(
String
jumpToName
,
Map
params
)
{
Map
map
=
{
"page_name"
:
jumpToName
};
if
(
params
!=
null
)
{
map
.
addAll
(
params
);
...
...
@@ -47,6 +47,11 @@ Future getBuriedInfo() async {
return
await
platform
.
invokeMethod
(
BURIED_METHOD
,
null
);
}
Observable
messagePopPicker
(
Map
params
)
{
return
Observable
.
fromFuture
(
platform
.
invokeMethod
(
"MESSAGE_POP_PICKER"
,
params
));
}
Observable
getNetType
(
)
{
return
Observable
.
fromFuture
(
platform
.
invokeMethod
(
NET_TYPE
,
null
));
}
...
...
@@ -104,7 +109,6 @@ void catchAllError(VoidCallback call) {
void
collectLog
(
String
line
)
{
//收集日志
}
void
reportErrorAndLog
(
FlutterErrorDetails
details
)
{
...
...
lib/main.dart
View file @
bd6fdfe4
...
...
@@ -104,26 +104,32 @@ class _MyAppState extends State<MyApp> {
:
int
.
parse
(
params
[
"template_id"
]),
params
[
"fromPage"
]);
},
"message_focus"
:
(
pageName
,
params
,
_
)
{
"message_focus"
:
(
pageName
,
params
,
_
)
{
if
(!
Api
.
getInstance
().
setDioCookie
(
params
)
||
params
[
"fromPage"
]
==
null
)
{
return
ErrorPage
(
"出错:需要传递的参数为空"
);
}
return
RouterCenterImpl
().
findNewMessageRouter
()?.
getFocusPage
(
params
[
"fromPage"
]);
return
RouterCenterImpl
()
.
findNewMessageRouter
()
?.
getFocusPage
(
params
[
"fromPage"
]);
},
"message_attention"
:
(
pageName
,
params
,
_
)
{
"message_attention"
:
(
pageName
,
params
,
_
)
{
if
(!
Api
.
getInstance
().
setDioCookie
(
params
)
||
params
[
"fromPage"
]
==
null
)
{
return
ErrorPage
(
"出错:需要传递的参数为空"
);
}
return
RouterCenterImpl
().
findNewMessageRouter
()?.
getAttentionPage
(
params
[
"fromPage"
]);
return
RouterCenterImpl
()
.
findNewMessageRouter
()
?.
getAttentionPage
(
params
[
"fromPage"
]);
},
"message_like"
:
(
pageName
,
params
,
_
)
{
"message_like"
:
(
pageName
,
params
,
_
)
{
if
(!
Api
.
getInstance
().
setDioCookie
(
params
)
||
params
[
"fromPage"
]
==
null
)
{
return
ErrorPage
(
"出错:需要传递的参数为空"
);
}
return
RouterCenterImpl
().
findNewMessageRouter
()?.
getLikePage
(
params
[
"fromPage"
]);
return
RouterCenterImpl
()
.
findNewMessageRouter
()
?.
getLikePage
(
params
[
"fromPage"
]);
}
});
FlutterBoost
.
handleOnStartPage
();
...
...
@@ -132,27 +138,26 @@ class _MyAppState extends State<MyApp> {
@override
Widget
build
(
BuildContext
context
)
{
return
MaterialApp
(
title:
'Flutter Boost example'
,
debugShowCheckedModeBanner:
false
,
routes:
{
'/'
:
(
context
)
{
return
TestPage
();
},
},
builder:
buildOnce
,
theme:
new
ThemeData
(
primaryColor:
Colors
.
white
,
backgroundColor:
Color
(
0xFFEFEFEF
),
accentColor:
Color
(
0xFF888888
),
textTheme:
TextTheme
(
//设置Material的默认字体样式
body1:
TextStyle
(
color:
Color
(
0xFF888888
),
fontSize:
16.0
),
),
iconTheme:
IconThemeData
(
color:
Color
(
0xFFEFEFEF
),
size:
35.0
,
),
)
);
title:
'Flutter Boost example'
,
debugShowCheckedModeBanner:
false
,
// routes: {
// '/': (context) {
// return TestPage();
// },
// },
builder:
buildOnce
,
theme:
new
ThemeData
(
primaryColor:
Colors
.
white
,
backgroundColor:
Color
(
0xFFEFEFEF
),
accentColor:
Color
(
0xFF888888
),
textTheme:
TextTheme
(
//设置Material的默认字体样式
body1:
TextStyle
(
color:
Color
(
0xFF888888
),
fontSize:
16.0
),
),
iconTheme:
IconThemeData
(
color:
Color
(
0xFFEFEFEF
),
size:
35.0
,
),
));
}
}
lib/messageModel/like/like_list.dart
deleted
100644 → 0
View file @
16c7ab29
import
'package:flutter/material.dart'
;
class
LikeList
extends
StatefulWidget
{
@override
_LikeListState
createState
()
=>
_LikeListState
();
}
class
_LikeListState
extends
State
<
LikeList
>
{
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
);
}
}
\ No newline at end of file
lib/messageModel/like/like_list_item.dart
deleted
100644 → 0
View file @
16c7ab29
import
'package:flutter/material.dart'
;
class
LkeListItem
extends
StatefulWidget
{
@override
_LkeListItemState
createState
()
=>
_LkeListItemState
();
}
class
_LkeListItemState
extends
State
<
LkeListItem
>
{
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
);
}
}
\ No newline at end of file
lib/res/anim/Anim.dart
View file @
bd6fdfe4
...
...
@@ -19,7 +19,7 @@ class CustomRoute extends PageRouteBuilder {
CustomRoute
(
this
.
widget
,
{
RouteWay
routeWay
=
RouteWay
.
TRAN_RIGHT_TO_LEFT
})
:
super
(
// 设置过度时间
transitionDuration:
Duration
(
milliseconds:
2
0
0
),
transitionDuration:
Duration
(
milliseconds:
2
3
0
),
// 构造器
pageBuilder:
(
// 上下文和动画
...
...
lib/userModel/page/userSetting/UserSettingModel.dart
View file @
bd6fdfe4
...
...
@@ -206,10 +206,12 @@ class UserSettingModel extends BaseModel {
UserEntityImpl
().
savenickName
(
name
);
UserEntityImpl
().
savecountryInfoId
(
countryId
);
UserEntityImpl
().
savecountryInfoName
(
cityLive
.
data
);
Timer
(
Duration
(
milliseconds:
200
),
()
{
FlutterBoost
.
singleton
.
closePageForContext
(
context
);
// Navigator.pop(context);
});
// Timer(Duration(milliseconds: 200), () {
// FlutterBoost.singleton.closePageForContext(context);
//// Navigator.pop(context);
// });
// FlutterBoost.singleton.closePageForContext(context);
Navigator
.
pop
(
context
,
""
);
}
else
{
Toast
.
show
(
context
,
"保存失败"
);
}
...
...
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