mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-08 19:17:49 +08:00
@@ -1,5 +1,6 @@
|
||||
import 'dart:math' show pi;
|
||||
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ActionItem extends StatelessWidget {
|
||||
@@ -35,16 +36,17 @@ class ActionItem extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
final colorScheme = theme.colorScheme;
|
||||
late final primary = !expand && colorScheme.isLight
|
||||
? colorScheme.inversePrimary
|
||||
: colorScheme.primary;
|
||||
Widget child = Icon(
|
||||
selectStatus ? selectIcon!.icon! : icon.icon,
|
||||
size: 18,
|
||||
color: selectStatus
|
||||
? theme.colorScheme.primary
|
||||
: icon.color ?? theme.colorScheme.outline,
|
||||
color: selectStatus ? primary : icon.color ?? colorScheme.outline,
|
||||
);
|
||||
|
||||
if (animation != null) {
|
||||
final primary = theme.colorScheme.primary;
|
||||
child = Stack(
|
||||
clipBehavior: Clip.none,
|
||||
alignment: Alignment.center,
|
||||
|
||||
@@ -68,7 +68,7 @@ class PlayerFocus extends StatelessWidget {
|
||||
plPlayerController
|
||||
..cancelLongPressTimer()
|
||||
..longPressTimer ??= Timer.periodic(
|
||||
const Duration(milliseconds: 200),
|
||||
const Duration(milliseconds: 150),
|
||||
(_) => _setVolume(isIncrease: isIncrease),
|
||||
);
|
||||
}
|
||||
@@ -137,8 +137,8 @@ class PlayerFocus extends StatelessWidget {
|
||||
final speed = isDigit1 ? 1.0 : 2.0;
|
||||
if (speed != plPlayerController.playbackSpeed) {
|
||||
plPlayerController.setPlaybackSpeed(speed);
|
||||
SmartDialog.showToast('${speed}x播放');
|
||||
}
|
||||
SmartDialog.showToast('${speed}x播放');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user