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

页面修改

上级 7c329c54
......@@ -77,9 +77,13 @@ class _BookDetailPageState extends State<BookDetailPage> with SingleTickerProvid
),
),
Container(
height: 1,
height: 1.w,
color: const Color(0xFFF9F9F9),
),
Container(
height: 8.w,
color: Colors.transparent,
),
Expanded(
child: TabBarView(
controller: controller.tabController,
......
......@@ -53,7 +53,7 @@ class BuildBook extends StatelessWidget {
model.bookName ?? '',
style: TextStyle(
fontSize: 17.w,
fontWeight: Fonts.medium,
fontWeight: Fonts.boldSemi,
color: Colours.c3),
maxLines: 1,
overflow: TextOverflow.ellipsis,
......
......@@ -28,7 +28,7 @@ class _BuildStudyState extends State<BuildStudy> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
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(
......@@ -55,7 +55,7 @@ class _BuildStudyState extends State<BuildStudy> {
children: [
TextSpan(
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(
// text: '万',
......@@ -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 {
return _buildProgrss(5- index.toDouble(), model.ratingCount == 0?0:model.ratingList![index].toDouble()/model.ratingCount!);
}).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> {
child: ClipRRect(
borderRadius: BorderRadius.only(topRight: Radius.circular(8.w),topLeft: Radius.circular(8.w)),
child: Container(
height: 240.w,
height: 210.w,
color: Colors.white,
child: _buildPayDetail(controller),
),
......@@ -153,7 +153,7 @@ class _BookPayPageState extends State<BookPayPage> {
child: const Row(
mainAxisAlignment: MainAxisAlignment.center,
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> {
)
],
),
SizedBox(height: 50.w,),
SizedBox(height: 20.w,),
Container(
margin: EdgeInsets.symmetric(horizontal: 15.w),
child: Column(
......
......@@ -43,7 +43,7 @@ class BuildCounter extends StatelessWidget {
Column(
crossAxisAlignment: CrossAxisAlignment.start,
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,))
],
)
......
......@@ -37,7 +37,18 @@ class _PayCouponPageState extends State<PayCouponPage> with SingleTickerProvide
),
body: Column(
children: [
TabBar(
Container(
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colours.cC8.withOpacity(0.1), // 设置阴影颜色
spreadRadius: 5, // 设置阴影扩散程度
blurRadius: 7, // 设置阴影模糊程度
offset: Offset(0, 5), // 设置阴影位置
),
],
),
child: TabBar(
labelColor: Colours.c3,
labelStyle: TextStyle(fontSize: 15.w,height: 1.4,fontWeight: Fonts.medium),
unselectedLabelColor: Colours.c9,
......@@ -48,6 +59,8 @@ class _PayCouponPageState extends State<PayCouponPage> with SingleTickerProvide
physics: const NeverScrollableScrollPhysics(),
controller: tabController,
),
),
Expanded(
child: TabBarView(
controller: tabController,
......
......@@ -40,6 +40,7 @@ class BuildItem extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center,
children: [
RichText(
overflow: TextOverflow.ellipsis, //
text: TextSpan(
children: <TextSpan>[
TextSpan(
......@@ -48,7 +49,7 @@ class BuildItem extends StatelessWidget {
),
TextSpan(
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> {
init: ReadController(bookId: widget.bookId, chapterId: widget.chapterId,chapterName: widget.chapterName,bookDetailModel: widget.bookDetailModel),
builder: (readController) => Scaffold(
appBar: CustomAppBar(
title: Text(readController.chapterName),
titleSpacing: 0,
title: Align(
alignment: Alignment.centerLeft,
child: Text(readController.chapterName),
),
centerTitle: false,
actions: [
GestureDetector(
......@@ -268,7 +272,7 @@ class _ReadPageState extends State<ReadPage> {
child: Image.asset(model.selected?model.activeIcon:model.icon,fit: BoxFit.cover,)
),
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))
],
),
......
......@@ -14,7 +14,7 @@ class BuildBook extends StatelessWidget {
child: Column(
children: [
Container(
padding: EdgeInsets.only(top: 12.w,bottom: 15.w),
padding: EdgeInsets.only(top: 12.w,bottom: 12.w),
// color: Colors.red,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
......
......@@ -23,7 +23,7 @@ class _BuildHistoryState extends State<BuildHistory> {
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
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(
onTap: (){
widget.controller.clear();
......@@ -78,7 +78,7 @@ class _BuildHistoryState extends State<BuildHistory> {
color: Colours.cF4
),
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,),
),
),
......
......@@ -19,7 +19,7 @@ class _BuildDiscussState extends State<BuildDiscuss> {
@override
Widget build(BuildContext context) {
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),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4.w),
......@@ -135,10 +135,10 @@ class _BuildDiscussState extends State<BuildDiscuss> {
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(
height: 15.w,
width: 15.w,
height: 20.w,
width: 20.w,
// 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))
],
......@@ -154,9 +154,9 @@ class _BuildDiscussState extends State<BuildDiscuss> {
},
child: Container(
height: 25.w,
width: 25.w,
color: Colors.yellow,
child: Image.asset('assets/images/reply.png'),
width: 15.w,
// color: Colors.yellow,
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))
......
......@@ -316,7 +316,7 @@ class _UserSetPageState extends State<UserSetPage> {
'稍后再说',
style: TextStyle(
color: Colours.c6,
fontSize: 12,
fontSize: 15,
fontWeight: Fonts.medium),
),
),
......@@ -338,8 +338,8 @@ class _UserSetPageState extends State<UserSetPage> {
'立即更新',
style: TextStyle(
color: Colours.cAB1941,
fontSize: 12,
fontWeight: Fonts.medium),
fontSize: 15,
fontWeight: Fonts.boldSemi),
),
),
onTap: () {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论