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
ac731df2
Commit
ac731df2
authored
Oct 22, 2019
by
郑智刚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配修改
parent
16c7ab29
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
AttentionListItem.dart
lib/NewMessageModel/page/AttentionListItem.dart
+7
-7
AttentionPage.dart
lib/NewMessageModel/page/AttentionPage.dart
+12
-12
No files found.
lib/NewMessageModel/page/AttentionListItem.dart
View file @
ac731df2
...
...
@@ -21,7 +21,7 @@ class AttentionListItem extends StatelessWidget {
maxLines:
maxLines
,
overflow:
TextOverflow
.
ellipsis
,
style:
TextStyle
(
fontSize:
ScreenUtil
()
.
setSp
(
size
),
fontSize:
ScreenUtil
.
instance
.
setSp
(
size
),
color:
color
,
height:
1.38
,
fontWeight:
weight
?
FontWeight
.
bold
:
FontWeight
.
normal
...
...
@@ -49,15 +49,15 @@ class AttentionListItem extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Container
(
margin:
EdgeInsets
.
only
(
left:
ScreenUtil
()
.
setWidth
(
10.0
)),
margin:
EdgeInsets
.
only
(
left:
ScreenUtil
.
instance
.
setWidth
(
10.0
)),
child:
myText
(
'
${item.title}
'
,
ALColors
.
Color464646
,
13.0
,
weight:
true
),
),
Padding
(
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
().
setWidth
(
10.0
),
top:
ScreenUtil
()
.
setHeight
(
4.0
)),
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
.
instance
.
setWidth
(
10.0
),
top:
ScreenUtil
.
instance
.
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
)),
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
.
instance
.
setWidth
(
10.0
),
top:
ScreenUtil
.
instance
.
setHeight
(
3.0
)),
child:
myText
(
MessageDate
(
item
.
pushTime
).
diffTime
(),
ALColors
.
Color999999
,
10.0
)
)
],
...
...
@@ -67,9 +67,9 @@ class AttentionListItem extends StatelessWidget {
Widget
listItemButton
()
{
return
Container
(
padding:
EdgeInsets
.
only
(
top:
ScreenUtil
().
setHeight
(
5.0
),
left:
ScreenUtil
()
.
setWidth
(
12.0
)),
width:
ScreenUtil
()
.
setWidth
(
66.0
),
height:
ScreenUtil
()
.
setHeight
(
34.0
),
padding:
EdgeInsets
.
only
(
top:
ScreenUtil
.
instance
.
setHeight
(
5.0
),
left:
ScreenUtil
.
instance
.
setWidth
(
12.0
)),
width:
ScreenUtil
.
instance
.
setWidth
(
66.0
),
height:
ScreenUtil
.
instance
.
setHeight
(
34.0
),
child:
OutlineButton
(
padding:
const
EdgeInsets
.
only
(
left:
0.0
,
right:
0.0
,),
borderSide:
BorderSide
(
...
...
lib/NewMessageModel/page/AttentionPage.dart
View file @
ac731df2
...
...
@@ -9,12 +9,12 @@ import 'package:gmalpha_flutter/commonModel/base/BasePage.dart';
import
'package:gmalpha_flutter/res/value/ALColors.dart'
;
import
'package:pull_to_refresh/pull_to_refresh.dart'
;
double
width15
=
ScreenUtil
()
.
setWidth
(
15.0
);
double
width16
=
ScreenUtil
()
.
setWidth
(
16.0
);
double
width10
=
ScreenUtil
()
.
setWidth
(
10.0
);
double
height16
=
ScreenUtil
()
.
setHeight
(
16.0
);
double
height10
=
ScreenUtil
()
.
setHeight
(
10.0
);
double
height20
=
ScreenUtil
()
.
setHeight
(
20.0
);
double
width15
=
ScreenUtil
.
instance
.
setWidth
(
15.0
);
double
width16
=
ScreenUtil
.
instance
.
setWidth
(
16.0
);
double
width10
=
ScreenUtil
.
instance
.
setWidth
(
10.0
);
double
height16
=
ScreenUtil
.
instance
.
setHeight
(
16.0
);
double
height10
=
ScreenUtil
.
instance
.
setHeight
(
10.0
);
double
height20
=
ScreenUtil
.
instance
.
setHeight
(
20.0
);
class
AttentionPage
extends
StatefulWidget
{
final
AttentionModel
_model
;
...
...
@@ -68,7 +68,7 @@ class _AttentionPageState extends BasePage<AttentionPage> {
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
color:
ALColors
.
Color999999
,
fontSize:
ScreenUtil
()
.
setSp
(
14.0
),
fontSize:
ScreenUtil
.
instance
.
setSp
(
14.0
),
height:
1.07
),
);
...
...
@@ -86,7 +86,7 @@ class _AttentionPageState extends BasePage<AttentionPage> {
),
Padding
(
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
()
.
setWidth
(
6.0
),
left:
ScreenUtil
.
instance
.
setWidth
(
6.0
),
top:
height20
,
bottom:
height20
),
...
...
@@ -101,7 +101,7 @@ class _AttentionPageState extends BasePage<AttentionPage> {
child:
Container
(
color:
Color
(
0xFFF4F3F8
),
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
()
.
setWidth
(
6.0
),
left:
ScreenUtil
.
instance
.
setWidth
(
6.0
),
top:
height20
,
bottom:
height20
),
...
...
@@ -251,14 +251,14 @@ class _AttentionPageState extends BasePage<AttentionPage> {
children:
<
Widget
>[
Padding
(
padding:
EdgeInsets
.
only
(
top:
ScreenUtil
()
.
setHeight
(
5.0
),
top:
ScreenUtil
.
instance
.
setHeight
(
5.0
),
left:
width16
,
right:
width16
,
bottom:
ScreenUtil
()
.
setHeight
(
19.0
)
bottom:
ScreenUtil
.
instance
.
setHeight
(
19.0
)
),
child:
Text
(
'通知'
,
style:
TextStyle
(
fontSize:
ScreenUtil
()
.
setSp
(
20.0
),
color:
ALColors
.
Color323232
),
style:
TextStyle
(
fontSize:
ScreenUtil
.
instance
.
setSp
(
20.0
),
color:
ALColors
.
Color323232
),
),
),
Container
(
...
...
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