提交 249e7567 authored 作者: maodou's avatar maodou

页面修改

上级 7c329c54
...@@ -77,9 +77,13 @@ class _BookDetailPageState extends State<BookDetailPage> with SingleTickerProvid ...@@ -77,9 +77,13 @@ class _BookDetailPageState extends State<BookDetailPage> with SingleTickerProvid
), ),
), ),
Container( Container(
height: 1, height: 1.w,
color: const Color(0xFFF9F9F9), color: const Color(0xFFF9F9F9),
), ),
Container(
height: 8.w,
color: Colors.transparent,
),
Expanded( Expanded(
child: TabBarView( child: TabBarView(
controller: controller.tabController, controller: controller.tabController,
......
...@@ -53,7 +53,7 @@ class BuildBook extends StatelessWidget { ...@@ -53,7 +53,7 @@ class BuildBook extends StatelessWidget {
model.bookName ?? '', model.bookName ?? '',
style: TextStyle( style: TextStyle(
fontSize: 17.w, fontSize: 17.w,
fontWeight: Fonts.medium, fontWeight: Fonts.boldSemi,
color: Colours.c3), color: Colours.c3),
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
......
...@@ -28,7 +28,7 @@ class _BuildStudyState extends State<BuildStudy> { ...@@ -28,7 +28,7 @@ class _BuildStudyState extends State<BuildStudy> {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text(widget.model.rating??'',style: TextStyle(fontSize: 18.w,height: 1.5,fontWeight: Fonts.medium,color: AppTheme.primary)), Text(widget.model.rating??'',style: TextStyle(fontSize: 18.w,height: 1.5,fontWeight: Fonts.medium,color: AppTheme.primary)),
Text('/5.0',style: TextStyle(fontSize: 15.w,height: 1.5,fontWeight: Fonts.medium,color: Colours.c9),) Text('/5.0',style: TextStyle(fontSize: 18.w,height: 1.5,fontWeight: Fonts.medium,color: Colours.c9),)
], ],
), ),
AbsorbPointer( AbsorbPointer(
...@@ -55,7 +55,7 @@ class _BuildStudyState extends State<BuildStudy> { ...@@ -55,7 +55,7 @@ class _BuildStudyState extends State<BuildStudy> {
children: [ children: [
TextSpan( TextSpan(
text: widget.model.readNum.toString(), text: widget.model.readNum.toString(),
style: TextStyle(fontSize: 18.w,color: Colours.c3,fontWeight: Fonts.medium,height: 1.3) style: TextStyle(fontSize: 17.w,color: Colours.c3,fontWeight: Fonts.medium,height: 1.3)
), ),
// TextSpan( // TextSpan(
// text: '万', // text: '万',
...@@ -63,7 +63,7 @@ class _BuildStudyState extends State<BuildStudy> { ...@@ -63,7 +63,7 @@ class _BuildStudyState extends State<BuildStudy> {
// ) // )
] ]
)), )),
Text('学习次数', style: TextStyle(fontSize: 12.w,color: Colours.c9,height: 1.3)), Text('学习次数', style: TextStyle(fontSize: 15.w,color: Colours.c9,height: 1.3)),
], ],
), ),
) )
......
...@@ -83,7 +83,7 @@ class BookInfoPage extends StatelessWidget { ...@@ -83,7 +83,7 @@ class BookInfoPage extends StatelessWidget {
return _buildProgrss(5- index.toDouble(), model.ratingCount == 0?0:model.ratingList![index].toDouble()/model.ratingCount!); return _buildProgrss(5- index.toDouble(), model.ratingCount == 0?0:model.ratingList![index].toDouble()/model.ratingCount!);
}).toList() }).toList()
), ),
Text('${model.ratingCount}个评分',style: TextStyle(fontSize: 9.w,height: 1.4,color: Colours.c9),) Text('${model.ratingCount}个评分',style: TextStyle(fontSize: 11.w,height: 1.4,color: Colours.c9),)
], ],
), ),
), ),
......
...@@ -128,7 +128,7 @@ class _BookPayPageState extends State<BookPayPage> { ...@@ -128,7 +128,7 @@ class _BookPayPageState extends State<BookPayPage> {
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.only(topRight: Radius.circular(8.w),topLeft: Radius.circular(8.w)), borderRadius: BorderRadius.only(topRight: Radius.circular(8.w),topLeft: Radius.circular(8.w)),
child: Container( child: Container(
height: 240.w, height: 210.w,
color: Colors.white, color: Colors.white,
child: _buildPayDetail(controller), child: _buildPayDetail(controller),
), ),
...@@ -153,7 +153,7 @@ class _BookPayPageState extends State<BookPayPage> { ...@@ -153,7 +153,7 @@ class _BookPayPageState extends State<BookPayPage> {
child: const Row( child: const Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text('应付明细',textAlign:TextAlign.center,style: TextStyle(fontSize: 15,height: 1.1,color: Colours.c3,fontWeight: Fonts.medium),), Text('应付明细',textAlign:TextAlign.center,style: TextStyle(fontSize: 19,height: 1.1,color: Colours.c3,fontWeight: Fonts.boldSemi),),
], ],
), ),
), ),
...@@ -173,7 +173,7 @@ class _BookPayPageState extends State<BookPayPage> { ...@@ -173,7 +173,7 @@ class _BookPayPageState extends State<BookPayPage> {
) )
], ],
), ),
SizedBox(height: 50.w,), SizedBox(height: 20.w,),
Container( Container(
margin: EdgeInsets.symmetric(horizontal: 15.w), margin: EdgeInsets.symmetric(horizontal: 15.w),
child: Column( child: Column(
......
...@@ -43,7 +43,7 @@ class BuildCounter extends StatelessWidget { ...@@ -43,7 +43,7 @@ class BuildCounter extends StatelessWidget {
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text('合计 ¥${controller.allPrice.toStringAsFixed(2)}',style: const TextStyle(color: AppTheme.primary,fontSize: 14,fontWeight: Fonts.boldSemi)), Text('合计 ¥${controller.allPrice.toStringAsFixed(2)}',style: const TextStyle(color: AppTheme.primary,fontSize: 16,fontWeight: Fonts.boldSemi)),
Text('已选 ${controller.num} 件',style: const TextStyle(color: Color(0xFF999999),fontSize: 12,)) Text('已选 ${controller.num} 件',style: const TextStyle(color: Color(0xFF999999),fontSize: 12,))
], ],
) )
......
...@@ -37,17 +37,30 @@ class _PayCouponPageState extends State<PayCouponPage> with SingleTickerProvide ...@@ -37,17 +37,30 @@ class _PayCouponPageState extends State<PayCouponPage> with SingleTickerProvide
), ),
body: Column( body: Column(
children: [ children: [
TabBar( Container(
labelColor: Colours.c3, decoration: BoxDecoration(
labelStyle: TextStyle(fontSize: 15.w,height: 1.4,fontWeight: Fonts.medium), boxShadow: [
unselectedLabelColor: Colours.c9, BoxShadow(
unselectedLabelStyle: TextStyle(fontSize: 15.w,height: 1.4), color: Colours.cC8.withOpacity(0.1), // 设置阴影颜色
indicatorSize: TabBarIndicatorSize.label, spreadRadius: 5, // 设置阴影扩散程度
indicatorColor: AppTheme.primary, blurRadius: 7, // 设置阴影模糊程度
tabs:tabs, offset: Offset(0, 5), // 设置阴影位置
physics: const NeverScrollableScrollPhysics(), ),
controller: tabController, ],
), ),
child: TabBar(
labelColor: Colours.c3,
labelStyle: TextStyle(fontSize: 15.w,height: 1.4,fontWeight: Fonts.medium),
unselectedLabelColor: Colours.c9,
unselectedLabelStyle: TextStyle(fontSize: 15.w,height: 1.4),
indicatorSize: TabBarIndicatorSize.label,
indicatorColor: AppTheme.primary,
tabs:tabs,
physics: const NeverScrollableScrollPhysics(),
controller: tabController,
),
),
Expanded( Expanded(
child: TabBarView( child: TabBarView(
controller: tabController, controller: tabController,
......
...@@ -40,6 +40,7 @@ class BuildItem extends StatelessWidget { ...@@ -40,6 +40,7 @@ class BuildItem extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
RichText( RichText(
overflow: TextOverflow.ellipsis, //
text: TextSpan( text: TextSpan(
children: <TextSpan>[ children: <TextSpan>[
TextSpan( TextSpan(
...@@ -48,7 +49,7 @@ class BuildItem extends StatelessWidget { ...@@ -48,7 +49,7 @@ class BuildItem extends StatelessWidget {
), ),
TextSpan( TextSpan(
text: model.reducedPrice??'', text: model.reducedPrice??'',
style: TextStyle(fontSize: 40.w,fontWeight: Fonts.boldSemi,height: 1.5,color: model.type ==1?Colors.white:Colours.cC8) style: TextStyle(fontSize: 40.w,fontWeight: Fonts.boldSemi,height: 1.5,color: model.type ==1?Colors.white:Colours.cC8,),
), ),
] ]
), ),
......
...@@ -34,7 +34,11 @@ class _ReadPageState extends State<ReadPage> { ...@@ -34,7 +34,11 @@ class _ReadPageState extends State<ReadPage> {
init: ReadController(bookId: widget.bookId, chapterId: widget.chapterId,chapterName: widget.chapterName,bookDetailModel: widget.bookDetailModel), init: ReadController(bookId: widget.bookId, chapterId: widget.chapterId,chapterName: widget.chapterName,bookDetailModel: widget.bookDetailModel),
builder: (readController) => Scaffold( builder: (readController) => Scaffold(
appBar: CustomAppBar( appBar: CustomAppBar(
title: Text(readController.chapterName), titleSpacing: 0,
title: Align(
alignment: Alignment.centerLeft,
child: Text(readController.chapterName),
),
centerTitle: false, centerTitle: false,
actions: [ actions: [
GestureDetector( GestureDetector(
...@@ -268,7 +272,7 @@ class _ReadPageState extends State<ReadPage> { ...@@ -268,7 +272,7 @@ class _ReadPageState extends State<ReadPage> {
child: Image.asset(model.selected?model.activeIcon:model.icon,fit: BoxFit.cover,) child: Image.asset(model.selected?model.activeIcon:model.icon,fit: BoxFit.cover,)
), ),
SizedBox(height: 2.5.w,), SizedBox(height: 2.5.w,),
model.selected?Text(model.name,style: TextStyle(fontSize: 12.w,height: 1.4,fontWeight: Fonts.medium,color: AppTheme.primary),) model.selected?Text(model.name,style: TextStyle(fontSize: 12.w,height: 1.4,fontWeight: Fonts.boldSemi,color: AppTheme.primary),)
:Text(model.name,style: TextStyle(fontSize: 12.w,height: 1.4,fontWeight: Fonts.medium,color: Colours.c6)) :Text(model.name,style: TextStyle(fontSize: 12.w,height: 1.4,fontWeight: Fonts.medium,color: Colours.c6))
], ],
), ),
......
...@@ -14,7 +14,7 @@ class BuildBook extends StatelessWidget { ...@@ -14,7 +14,7 @@ class BuildBook extends StatelessWidget {
child: Column( child: Column(
children: [ children: [
Container( Container(
padding: EdgeInsets.only(top: 12.w,bottom: 15.w), padding: EdgeInsets.only(top: 12.w,bottom: 12.w),
// color: Colors.red, // color: Colors.red,
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
......
...@@ -23,7 +23,7 @@ class _BuildHistoryState extends State<BuildHistory> { ...@@ -23,7 +23,7 @@ class _BuildHistoryState extends State<BuildHistory> {
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text('搜索历史',style: TextStyle(fontSize: 14.w,height: 1.5,color: Colours.c3,fontWeight: Fonts.medium),), Text('搜索历史',style: TextStyle(fontSize: 14.w,height: 1.5,color: Colours.c3,fontWeight: Fonts.boldSemi),),
GestureDetector( GestureDetector(
onTap: (){ onTap: (){
widget.controller.clear(); widget.controller.clear();
...@@ -78,7 +78,7 @@ class _BuildHistoryState extends State<BuildHistory> { ...@@ -78,7 +78,7 @@ class _BuildHistoryState extends State<BuildHistory> {
color: Colours.cF4 color: Colours.cF4
), ),
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(horizontal:15,vertical: 5), padding: const EdgeInsets.symmetric(horizontal:15,vertical: 3),
child: Text(e,style: const TextStyle(fontSize: 13,height: 1.4,color: Colours.c3),textAlign: TextAlign.center,), child: Text(e,style: const TextStyle(fontSize: 13,height: 1.4,color: Colours.c3),textAlign: TextAlign.center,),
), ),
), ),
......
...@@ -19,7 +19,7 @@ class _BuildDiscussState extends State<BuildDiscuss> { ...@@ -19,7 +19,7 @@ class _BuildDiscussState extends State<BuildDiscuss> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 10.w), margin: EdgeInsets.only(left: 10.w,right: 10.w),
padding: EdgeInsets.all(10.w), padding: EdgeInsets.all(10.w),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4.w), borderRadius: BorderRadius.circular(4.w),
...@@ -135,10 +135,10 @@ class _BuildDiscussState extends State<BuildDiscuss> { ...@@ -135,10 +135,10 @@ class _BuildDiscussState extends State<BuildDiscuss> {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
SizedBox( SizedBox(
height: 15.w, height: 20.w,
width: 15.w, width: 20.w,
// color: Colors.green, // color: Colors.green,
child: Image.asset('assets/images/love.png'), child: Image.asset('assets/images/love.png',fit: BoxFit.cover,),
), ),
Text(model.goodNum.toString(),style: TextStyle(fontSize:12.w,height: 1.5,color: Colours.c9)) Text(model.goodNum.toString(),style: TextStyle(fontSize:12.w,height: 1.5,color: Colours.c9))
], ],
...@@ -154,9 +154,9 @@ class _BuildDiscussState extends State<BuildDiscuss> { ...@@ -154,9 +154,9 @@ class _BuildDiscussState extends State<BuildDiscuss> {
}, },
child: Container( child: Container(
height: 25.w, height: 25.w,
width: 25.w, width: 15.w,
color: Colors.yellow, // color: Colors.yellow,
child: Image.asset('assets/images/reply.png'), child: Image.asset('assets/images/reply.png',height: 15.w,width: 15.w,fit: BoxFit.fitWidth,),
), ),
), ),
Text(model.replyNum.toString(),style: TextStyle(fontSize:12.w,height: 1.5,color: Colours.c9)) Text(model.replyNum.toString(),style: TextStyle(fontSize:12.w,height: 1.5,color: Colours.c9))
......
...@@ -316,7 +316,7 @@ class _UserSetPageState extends State<UserSetPage> { ...@@ -316,7 +316,7 @@ class _UserSetPageState extends State<UserSetPage> {
'稍后再说', '稍后再说',
style: TextStyle( style: TextStyle(
color: Colours.c6, color: Colours.c6,
fontSize: 12, fontSize: 15,
fontWeight: Fonts.medium), fontWeight: Fonts.medium),
), ),
), ),
...@@ -338,8 +338,8 @@ class _UserSetPageState extends State<UserSetPage> { ...@@ -338,8 +338,8 @@ class _UserSetPageState extends State<UserSetPage> {
'立即更新', '立即更新',
style: TextStyle( style: TextStyle(
color: Colours.cAB1941, color: Colours.cAB1941,
fontSize: 12, fontSize: 15,
fontWeight: Fonts.medium), fontWeight: Fonts.boldSemi),
), ),
), ),
onTap: () { onTap: () {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论