Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_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
林生雨
gm_flutter
Commits
50ecef77
Commit
50ecef77
authored
Jul 15, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix UI bug
parent
96d621ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
52 deletions
+68
-52
LevelOneItem.dart
lib/ClueModel/page/levelOne/LevelOneItem.dart
+58
-44
LevelOnePage.dart
lib/ClueModel/page/levelOne/LevelOnePage.dart
+5
-4
LevelTwoPage.dart
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
+5
-4
No files found.
lib/ClueModel/page/levelOne/LevelOneItem.dart
View file @
50ecef77
...
...
@@ -539,59 +539,73 @@ class LevelOneItem extends StatelessWidget {
child:
Row
(
children:
<
Widget
>[
Expanded
(
child:
AspectRatio
(
aspectRatio:
1
,
child:
Container
(
decoration:
BoxDecoration
(
child:
Stack
(
children:
<
Widget
>[
Container
(
width:
diaryImageWidth
,
height:
diaryImageWidth
,
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
4
),
image:
DecorationImage
(
fit:
BoxFit
.
cover
,
image:
NetworkImage
(
cards
.
diary
.
images
[
0
].
imageHalf
))),
alignment:
Alignment
.
bottomLeft
,
child:
Container
(
width:
65.5
,
height:
18
,
decoration:
BoxDecoration
(
color:
Color
(
0x4c000000
),
borderRadius:
BorderRadius
.
only
(
bottomLeft:
Radius
.
circular
(
4
),
topRight:
Radius
.
circular
(
2
),
)),
alignment:
Alignment
.
center
,
child:
baseText
(
cards
.
diary
.
images
[
0
].
desc
,
11
,
Colors
.
white
),
child:
CachedNetworkImage
(
imageUrl:
cards
.
diary
.
images
[
0
].
imageHalf
,
fit:
BoxFit
.
cover
,
),
),
),
),
Positioned
(
left:
0
,
bottom:
0
,
child:
Container
(
width:
65.5
,
height:
18
,
decoration:
BoxDecoration
(
color:
Color
(
0x4c000000
),
borderRadius:
BorderRadius
.
only
(
bottomLeft:
Radius
.
circular
(
4
),
topRight:
Radius
.
circular
(
2
),
)),
alignment:
Alignment
.
center
,
child:
baseText
(
cards
.
diary
.
images
[
0
].
desc
,
11
,
Colors
.
white
),
),
)
],
)),
Container
(
width:
9
,
),
Expanded
(
child:
AspectRatio
(
aspectRatio:
1
,
child:
Container
(
decoration:
BoxDecoration
(
child:
Stack
(
children:
<
Widget
>[
Container
(
width:
diaryImageWidth
,
height:
diaryImageWidth
,
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
4
),
image:
DecorationImage
(
fit:
BoxFit
.
cover
,
image:
NetworkImage
(
cards
.
diary
.
images
[
1
].
imageHalf
))),
alignment:
Alignment
.
bottomLeft
,
child:
Container
(
width:
65.5
,
height:
18
,
decoration:
BoxDecoration
(
color:
Color
(
0x4c000000
),
borderRadius:
BorderRadius
.
only
(
bottomLeft:
Radius
.
circular
(
4
),
topRight:
Radius
.
circular
(
2
),
)),
alignment:
Alignment
.
center
,
child:
baseText
(
cards
.
diary
.
images
[
1
].
desc
,
11
,
Colors
.
white
),
child:
CachedNetworkImage
(
imageUrl:
cards
.
diary
.
images
[
1
].
imageHalf
,
fit:
BoxFit
.
cover
,
),
),
),
),
Positioned
(
left:
0
,
bottom:
0
,
child:
Container
(
width:
65.5
,
height:
18
,
decoration:
BoxDecoration
(
color:
Color
(
0x4c000000
),
borderRadius:
BorderRadius
.
only
(
bottomLeft:
Radius
.
circular
(
4
),
topRight:
Radius
.
circular
(
2
),
)),
alignment:
Alignment
.
center
,
child:
baseText
(
cards
.
diary
.
images
[
1
].
desc
,
11
,
Colors
.
white
),
),
)
],
))
],
)),
...
...
lib/ClueModel/page/levelOne/LevelOnePage.dart
View file @
50ecef77
...
...
@@ -27,6 +27,7 @@ import 'package:gm_flutter/commonModel/base/BaseState.dart';
import
'package:gm_flutter/commonModel/bean/Pair.dart'
;
import
'package:gm_flutter/commonModel/cache/CacheManager.dart'
;
import
'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart'
;
import
'package:gm_flutter/commonModel/util/DartUtil.dart'
;
import
'package:gm_flutter/commonModel/view/baseRefreshIndicator.dart'
;
import
'package:gm_flutter/main.mark.dart'
;
import
'package:pull_to_refresh/pull_to_refresh.dart'
;
...
...
@@ -101,13 +102,13 @@ class LevelOneState extends BaseState<LevelOnePage>
stateBarHeight
=
MediaQueryData
.
fromWindow
(
window
).
padding
.
top
;
oneList
.
clear
();
oneList
.
add
(
good
());
oneList
.
add
(
rect
());
oneList
.
add
(
explain
());
oneList
.
add
(
good
()
.
toActive
()
);
oneList
.
add
(
rect
()
.
toActive
()
);
oneList
.
add
(
explain
()
.
toActive
()
);
oneList
.
add
(
Container
(
height:
5
,
color:
Color
(
0xffF7F6FA
),
));
)
.
toActive
()
);
screenWidth
=
MediaQuery
.
of
(
context
).
size
.
width
;
return
Scaffold
(
backgroundColor:
Colors
.
white
,
...
...
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
View file @
50ecef77
...
...
@@ -23,6 +23,7 @@ import 'package:gm_flutter/commonModel/base/BaseState.dart';
import
'package:gm_flutter/commonModel/bean/Pair.dart'
;
import
'package:gm_flutter/commonModel/cache/CacheManager.dart'
;
import
'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart'
;
import
'package:gm_flutter/commonModel/util/DartUtil.dart'
;
import
'package:gm_flutter/commonModel/view/baseRefreshIndicator.dart'
;
import
'package:gm_flutter/main.mark.dart'
;
import
'package:pull_to_refresh/pull_to_refresh.dart'
;
...
...
@@ -90,13 +91,13 @@ class LevelTwoState extends BaseState<LevelTwoPage>
@override
Widget
buildItem
(
BuildContext
context
)
{
oneList
.
clear
();
oneList
.
add
(
good
());
oneList
.
add
(
rect
());
oneList
.
add
(
explain
());
oneList
.
add
(
good
()
.
toActive
()
);
oneList
.
add
(
rect
()
.
toActive
()
);
oneList
.
add
(
explain
()
.
toActive
()
);
oneList
.
add
(
Container
(
height:
5
,
color:
Color
(
0xffF7F6FA
),
));
)
.
toActive
()
);
screenWidth
=
MediaQuery
.
of
(
context
).
size
.
width
;
return
Scaffold
(
backgroundColor:
Colors
.
white
,
...
...
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