Commit 3a5d1c31 authored by 杜欣's avatar 杜欣

二级方案

parent e45d727f
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:gm_flutter/commonModel/base/BaseState.dart'; import 'package:gm_flutter/commonModel/base/BaseState.dart';
import 'package:gm_flutter/commonModel/base/BaseComponent.dart';
class LevelTwoPage extends StatefulWidget { class LevelTwoPage extends StatefulWidget {
@override @override
...@@ -24,48 +25,83 @@ class _LevelTwoPageState extends BaseState<LevelTwoPage> ...@@ -24,48 +25,83 @@ class _LevelTwoPageState extends BaseState<LevelTwoPage>
@override @override
Widget buildItem(BuildContext context) { Widget buildItem(BuildContext context) {
return Scaffold( return Scaffold(
body: CustomScrollView( body: Column(
slivers: <Widget>[ children: <Widget>[
SliverAppBar( Padding(
pinned: true, padding: EdgeInsets.only(left: 15.0, right: 15.0, top: 8.0),
elevation: 0, child: Row(
expandedHeight: 250, crossAxisAlignment: CrossAxisAlignment.start,
flexibleSpace: FlexibleSpaceBar(title: Text('二级方案')), 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,
), ),
SliverPersistentHeader( )),
pinned: true, Padding(
delegate: StickyTabBarDelegate( padding: EdgeInsets.only(left: 12, top: 5),
child: TabBar( child: Column(
labelColor: Color(0xff282828), crossAxisAlignment: CrossAxisAlignment.start,
labelStyle: mainAxisSize: MainAxisSize.max,
TextStyle(fontSize: 15.0, fontWeight: FontWeight.bold), children: <Widget>[
labelPadding: EdgeInsets.only(top: 15.0), Text('乔雅登玻尿酸(药品类)',
unselectedLabelColor: Color(0xffB5B5B5), style: TextStyle(
unselectedLabelStyle: TextStyle(fontSize: 15.0), color: Color(0xff333333),
indicatorColor: Color(0xff4ABAB4), fontSize: 15,
indicatorWeight: 3.0, fontWeight: FontWeight.bold)),
indicatorSize: TabBarIndicatorSize.label, Padding(padding: EdgeInsets.only(top: 12)),
indicatorPadding: EdgeInsets.only(left: 5.0, right: 5.0), Row(
controller: this.tabController, crossAxisAlignment: CrossAxisAlignment.start,
tabs: <Widget>[ verticalDirection: VerticalDirection.up,
Tab(text: '医院'), children: <Widget>[
Tab(text: '医生'), Text('指导价:',
style: TextStyle(
color: Color(0xff999999), fontSize: 12)),
Text(
'¥2000-5000',
style: TextStyle(
color: Color(0xffFF5963), fontSize: 12),
)
],
)
],
)),
], ],
), ),
), ),
), Padding(
SliverFillRemaining( padding: EdgeInsets.only(top: 20, left: 15, right: 15),
child: TabBarView( child: Container(
controller: this.tabController, color: Color(0xffF9F8FB),
child: Padding(
padding: EdgeInsets.only(top: 15, left: 21, bottom: 15),
child: Row(
children: <Widget>[
Column(
children: <Widget>[ children: <Widget>[
Center(child: Text('医院列表')), Text('乔雅登',
Center(child: Text('医生列表')), style: TextStyle(
color: Color(0xff282828), fontSize: 14)),
Padding(padding: EdgeInsets.only(top: 12)),
Text('品牌',
style: TextStyle(
color: Color(0xff999999), fontSize: 11))
],
)
], ],
), ),
)),
), ),
], ],
), ));
);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment