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
3a5d1c31
Commit
3a5d1c31
authored
Jun 30, 2020
by
杜欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二级方案
parent
e45d727f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
77 additions
and
41 deletions
+77
-41
LevelTwoPage.dart
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
+77
-41
No files found.
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
View file @
3a5d1c31
...
...
@@ -5,6 +5,7 @@
import
'package:flutter/material.dart'
;
import
'package:gm_flutter/commonModel/base/BaseState.dart'
;
import
'package:gm_flutter/commonModel/base/BaseComponent.dart'
;
class
LevelTwoPage
extends
StatefulWidget
{
@override
...
...
@@ -24,48 +25,83 @@ class _LevelTwoPageState extends BaseState<LevelTwoPage>
@override
Widget
buildItem
(
BuildContext
context
)
{
return
Scaffold
(
body:
CustomScrollView
(
slivers:
<
Widget
>[
SliverAppBar
(
pinned:
true
,
elevation:
0
,
expandedHeight:
250
,
flexibleSpace:
FlexibleSpaceBar
(
title:
Text
(
'二级方案'
)),
body:
Column
(
children:
<
Widget
>[
Padding
(
padding:
EdgeInsets
.
only
(
left:
15.0
,
right:
15.0
,
top:
8.0
),
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
mainAxisSize:
MainAxisSize
.
max
,
children:
<
Widget
>[
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
6
),
child:
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
17
),
border:
Border
.
all
(
color:
Color
(
0xffF9F8FB
),
width:
1
)),
child:
Image
.
network
(
'https://img1.gamersky.com/image2019/07/20190725_ll_red_136_2/gamersky_07small_14_201972510258D0.jpg'
,
width:
86
,
height:
86
,
fit:
BoxFit
.
cover
,
),
)),
Padding
(
padding:
EdgeInsets
.
only
(
left:
12
,
top:
5
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
mainAxisSize:
MainAxisSize
.
max
,
children:
<
Widget
>[
Text
(
'乔雅登玻尿酸(药品类)'
,
style:
TextStyle
(
color:
Color
(
0xff333333
),
fontSize:
15
,
fontWeight:
FontWeight
.
bold
)),
Padding
(
padding:
EdgeInsets
.
only
(
top:
12
)),
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
verticalDirection:
VerticalDirection
.
up
,
children:
<
Widget
>[
Text
(
'指导价:'
,
style:
TextStyle
(
color:
Color
(
0xff999999
),
fontSize:
12
)),
Text
(
'¥2000-5000'
,
style:
TextStyle
(
color:
Color
(
0xffFF5963
),
fontSize:
12
),
)
],
)
],
)),
],
),
SliverPersistentHeader
(
pinned:
true
,
delegate:
StickyTabBarDelegate
(
child:
TabBar
(
labelColor:
Color
(
0xff282828
),
labelStyle:
TextStyle
(
fontSize:
15.0
,
fontWeight:
FontWeight
.
bold
),
labelPadding:
EdgeInsets
.
only
(
top:
15.0
),
unselectedLabelColor:
Color
(
0xffB5B5B5
),
unselectedLabelStyle:
TextStyle
(
fontSize:
15.0
),
indicatorColor:
Color
(
0xff4ABAB4
),
indicatorWeight:
3.0
,
indicatorSize:
TabBarIndicatorSize
.
label
,
indicatorPadding:
EdgeInsets
.
only
(
left:
5.0
,
right:
5.0
),
controller:
this
.
tabController
,
tabs:
<
Widget
>[
Tab
(
text:
'医院'
),
Tab
(
text:
'医生'
),
],
),
),
),
SliverFillRemaining
(
child:
TabBarView
(
controller:
this
.
tabController
,
children:
<
Widget
>[
Center
(
child:
Text
(
'医院列表'
)),
Center
(
child:
Text
(
'医生列表'
)),
],
),
),
],
),
);
),
Padding
(
padding:
EdgeInsets
.
only
(
top:
20
,
left:
15
,
right:
15
),
child:
Container
(
color:
Color
(
0xffF9F8FB
),
child:
Padding
(
padding:
EdgeInsets
.
only
(
top:
15
,
left:
21
,
bottom:
15
),
child:
Row
(
children:
<
Widget
>[
Column
(
children:
<
Widget
>[
Text
(
'乔雅登'
,
style:
TextStyle
(
color:
Color
(
0xff282828
),
fontSize:
14
)),
Padding
(
padding:
EdgeInsets
.
only
(
top:
12
)),
Text
(
'品牌'
,
style:
TextStyle
(
color:
Color
(
0xff999999
),
fontSize:
11
))
],
)
],
),
)),
),
],
));
}
}
...
...
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