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
16c7ab29
Commit
16c7ab29
authored
Oct 22, 2019
by
杜欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
submit message
parent
712db773
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
18 deletions
+21
-18
arrow_right.svg
images/arrow_right.svg
+3
-0
common.dart
lib/NewMessageModel/page/common.dart
+12
-9
main.dart
lib/main.dart
+6
-9
No files found.
images/arrow_right.svg
0 → 100755
View file @
16c7ab29
<svg
width=
"9"
height=
"15"
viewBox=
"0 0 9 15"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M1 14L7 7.5L1 1"
stroke=
"#323232"
stroke-width=
"1.5"
/>
</svg>
lib/NewMessageModel/page/common.dart
View file @
16c7ab29
import
'package:flutter/cupertino.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:flutter_svg/flutter_svg.dart'
;
import
'package:gmalpha_flutter/Annotations/RouterCenterRestore.mark.dart'
;
import
'package:gmalpha_flutter/NewMessageModel/util/message_date.dart'
;
import
'package:gmalpha_flutter/commonModel/base/AppBase.dart'
;
...
...
@@ -22,15 +23,7 @@ Widget messageTop(imgUrl, title, content, count) {
var
height
=
ScreenUtil
().
setHeight
(
12
);
return
Container
(
padding:
EdgeInsets
.
only
(
left:
width
,
right:
width
),
margin:
EdgeInsets
.
only
(
right:
ScreenUtil
().
setWidth
(
26
)),
width:
double
.
infinity
,
decoration:
BoxDecoration
(
color:
ALColors
.
ColorFFFFFF
,
image:
DecorationImage
(
image:
AssetImage
(
'images/arrow_right.png'
),
alignment:
Alignment
.
centerRight
)
),
child:
Stack
(
children:
<
Widget
>[
Container
(
...
...
@@ -72,7 +65,17 @@ Widget messageTop(imgUrl, title, content, count) {
],
),
),
getNum
(
count
)
getNum
(
count
),
Positioned
(
right:
ScreenUtil
().
setWidth
(
14
),
top:
ScreenUtil
().
setHeight
(
12
),
child:
Hero
(
tag:
"arrow_right"
,
child:
SvgPicture
.
asset
(
"images/arrow_right.svg"
,
color:
ALColors
.
Color323232
,
)),
)
],
)
);
...
...
lib/main.dart
View file @
16c7ab29
...
...
@@ -134,11 +134,11 @@ class _MyAppState extends State<MyApp> {
return
MaterialApp
(
title:
'Flutter Boost example'
,
debugShowCheckedModeBanner:
false
,
//
routes: {
//
'/': (context) {
//
return TestPage();
//
},
//
},
routes:
{
'/'
:
(
context
)
{
return
TestPage
();
},
},
builder:
buildOnce
,
theme:
new
ThemeData
(
primaryColor:
Colors
.
white
,
...
...
@@ -152,10 +152,7 @@ class _MyAppState extends State<MyApp> {
color:
Color
(
0xFFEFEFEF
),
size:
35.0
,
),
),
home:
Container
(
color:
Colors
.
transparent
,
),
)
);
}
}
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