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

二级方案

parent e45d727f
......@@ -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))
],
)
],
),
)),
),
],
));
}
}
......
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