show fullscreen qa btn

Closes #1081

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-22 15:12:58 +08:00
parent 272cfcb829
commit 4d3a74f2e0
10 changed files with 138 additions and 64 deletions

View File

@@ -740,17 +740,9 @@ class ReplyItemGrpc extends StatelessWidget {
final ctr = Get.find<VideoDetailController>(
tag: getTag?.call() ?? Get.arguments['heroTag'],
);
int duration = ctr.data.timeLength!;
List<int> split = matchStr
.split(':')
.reversed
.map((item) => int.parse(item))
.toList();
int seek = 0;
for (int i = 0; i < split.length; i++) {
seek += split[i] * pow(60, i).toInt();
}
isValid = seek * 1000 <= duration;
isValid =
ctr.data.timeLength! * 1000 <=
DurationUtil.parseDuration(matchStr);
} catch (e) {
if (kDebugMode) debugPrint('failed to validate: $e');
}