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
677bfbe3
Commit
677bfbe3
authored
Jul 02, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
f6a8e0b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
18 deletions
+6
-18
LevelTwoPage.dart
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
+3
-12
BaseComponent.dart
lib/commonModel/base/BaseComponent.dart
+3
-6
No files found.
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
View file @
677bfbe3
...
...
@@ -67,18 +67,9 @@ class _LevelTwoPageState extends BaseState<LevelTwoPage>
SliverPersistentHeader
(
pinned:
true
,
delegate:
StickyTabBarDelegate
(
child:
TabBar
(
labelColor:
Color
(
0xff282828
),
labelStyle:
TextStyle
(
fontSize:
15.0
,
fontWeight:
FontWeight
.
bold
),
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:
'医生'
)]),
child:
baseTabBar
(
tabController
,
[
baseTabBarItem
(
"医院"
),
baseTabBarItem
(
"医生"
)],
(
index
)
{},
scroll:
false
),
),
),
SliverFillRemaining
(
...
...
lib/commonModel/base/BaseComponent.dart
View file @
677bfbe3
...
...
@@ -416,17 +416,14 @@ Widget baseTabBar(
);
}
Widget
baseTabBarItem
(
String
text
,
{
double
leftPadding
,
double
rightPadding
,
})
{
Widget
baseTabBarItem
(
String
text
,
{
double
leftPadding
,
double
rightPadding
,
double
wantWidth
})
{
leftPadding
=
leftPadding
??
28.0
;
rightPadding
=
rightPadding
??
28.0
;
double
width
=
leftPadding
+
text
.
length
*
16.0
+
rightPadding
;
return
Container
(
height:
40
,
width:
width
,
width:
w
antWidth
??
w
idth
,
alignment:
Alignment
.
center
,
child:
Tab
(
text:
text
,
...
...
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