logo和名称替换
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:hgmj/assets_tool/images.dart';
|
||||
import 'package:hgmj/hj_model/acg/comic_chapters_model.dart';
|
||||
import 'package:hgmj/hj_page/live/live_widget.dart';
|
||||
import 'package:hgmj/hj_utils/screen.dart';
|
||||
import 'package:wydj/assets_tool/images.dart';
|
||||
import 'package:wydj/hj_model/acg/comic_chapters_model.dart';
|
||||
import 'package:wydj/hj_page/live/live_widget.dart';
|
||||
import 'package:wydj/hj_utils/screen.dart';
|
||||
|
||||
import '../../assets_tool/app_colors.dart';
|
||||
import '../../hj_utils/widget_util.dart';
|
||||
import 'widget/free_badge.dart';
|
||||
import 'package:hgmj/tools_base/widget/stagger_in_item.dart';
|
||||
import 'package:hgmj/tools_base/widget/sheet_handle_bar.dart';
|
||||
import 'package:wydj/tools_base/widget/stagger_in_item.dart';
|
||||
import 'package:wydj/tools_base/widget/sheet_handle_bar.dart';
|
||||
|
||||
//有声小说 选择子集
|
||||
class AudioPlayerBottomSheet extends StatefulWidget {
|
||||
@@ -62,7 +62,8 @@ class _AudioPlayerBottomSheetState extends State<AudioPlayerBottomSheet> {
|
||||
),
|
||||
),
|
||||
Spacer(),
|
||||
InkWell(enableFeedback: false,
|
||||
InkWell(
|
||||
enableFeedback: false,
|
||||
onTap: () => setState(() => sortType = sortType == 1 ? 0 : 1),
|
||||
child: Row(
|
||||
children: [
|
||||
@@ -70,12 +71,14 @@ class _AudioPlayerBottomSheetState extends State<AudioPlayerBottomSheet> {
|
||||
turns: sortType == 1 ? 0 : 0.5,
|
||||
duration: const Duration(milliseconds: 250),
|
||||
curve: Curves.easeOutCubic,
|
||||
child: Image.asset('text_play_sort.png'.acgImgPath, width: 18),
|
||||
child: Image.asset('text_play_sort.png'.acgImgPath,
|
||||
width: 18),
|
||||
),
|
||||
4.sizeBoxW,
|
||||
Text(
|
||||
sortType == 1 ? '正序' : '倒序',
|
||||
style: textStyle(12, Colors.white.withValues(alpha: .45), FontWeight.w400),
|
||||
style: textStyle(12, Colors.white.withValues(alpha: .45),
|
||||
FontWeight.w400),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -96,52 +99,57 @@ class _AudioPlayerBottomSheetState extends State<AudioPlayerBottomSheet> {
|
||||
final model = widget.allAudiobooks[realIndex];
|
||||
final select = widget.currentPlayIndex == realIndex;
|
||||
return StaggerInItem(
|
||||
index: index,
|
||||
child: InkWell(enableFeedback: false,
|
||||
onTap: () {
|
||||
Get.back(result: realIndex);
|
||||
widget.indexHandler?.call(realIndex);
|
||||
},
|
||||
child: Container(
|
||||
padding: const EdgeInsets.only(bottom: 6),
|
||||
child: Column(
|
||||
children: [
|
||||
16.sizeBoxH,
|
||||
Row(
|
||||
index: index,
|
||||
child: InkWell(
|
||||
enableFeedback: false,
|
||||
onTap: () {
|
||||
Get.back(result: realIndex);
|
||||
widget.indexHandler?.call(realIndex);
|
||||
},
|
||||
child: Container(
|
||||
padding: const EdgeInsets.only(bottom: 6),
|
||||
child: Column(
|
||||
children: [
|
||||
if (select) ...[
|
||||
AudioWaveView(),
|
||||
8.sizeBoxW,
|
||||
],
|
||||
Expanded(
|
||||
child: Text(
|
||||
//与详情/抽屉子集 title 格式一致:第X章
|
||||
'第${model.episodeNumber ?? 1}${widget.unit ?? ''}',
|
||||
style: TextStyle(
|
||||
color: select ? AppColors.actionRed : Colors.white.withValues(alpha: .9),
|
||||
fontSize: 14,
|
||||
16.sizeBoxH,
|
||||
Row(
|
||||
children: [
|
||||
if (select) ...[
|
||||
AudioWaveView(),
|
||||
8.sizeBoxW,
|
||||
],
|
||||
Expanded(
|
||||
child: Text(
|
||||
//与详情/抽屉子集 title 格式一致:第X章
|
||||
'第${model.episodeNumber ?? 1}${widget.unit ?? ''}',
|
||||
style: TextStyle(
|
||||
color: select
|
||||
? AppColors.actionRed
|
||||
: Colors.white
|
||||
.withValues(alpha: .9),
|
||||
fontSize: 14,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
//无任何权限时,前 N 集免费展示「免费」角标
|
||||
if (widget.hasPermission == false &&
|
||||
model.inFreeEpisode) ...[
|
||||
8.sizeBoxW,
|
||||
const FreeBadge(),
|
||||
],
|
||||
8.sizeBoxW,
|
||||
const Icon(
|
||||
Icons.navigate_next,
|
||||
size: 18,
|
||||
color: Color(0xffDCDCDC),
|
||||
)
|
||||
],
|
||||
),
|
||||
//无任何权限时,前 N 集免费展示「免费」角标
|
||||
if (widget.hasPermission == false && model.inFreeEpisode) ...[
|
||||
8.sizeBoxW,
|
||||
const FreeBadge(),
|
||||
],
|
||||
8.sizeBoxW,
|
||||
const Icon(
|
||||
Icons.navigate_next,
|
||||
size: 18,
|
||||
color: Color(0xffDCDCDC),
|
||||
)
|
||||
16.sizeBoxH,
|
||||
],
|
||||
),
|
||||
16.sizeBoxH,
|
||||
],
|
||||
)),
|
||||
));
|
||||
)),
|
||||
));
|
||||
},
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user