Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-25 13:18:59 +08:00
parent 525dce989b
commit 94063ab1f9
11 changed files with 175 additions and 187 deletions

View File

@@ -23,11 +23,11 @@ class AppBarAni extends StatelessWidget {
static const _topDecoration = LinearGradient(
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
colors: <Color>[
colors: [
Colors.transparent,
Color(0xBF000000),
],
tileMode: TileMode.mirror,
tileMode: .mirror,
);
static final _bottomPos = Tween<Offset>(
@@ -38,11 +38,11 @@ class AppBarAni extends StatelessWidget {
static const _bottomDecoration = LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: <Color>[
colors: [
Colors.transparent,
Color(0xBF000000),
],
tileMode: TileMode.mirror,
tileMode: .mirror,
);
@override

View File

@@ -49,7 +49,7 @@ class BackwardSeekIndicatorState extends State<BackwardSeekIndicator> {
@override
Widget build(BuildContext context) {
return Material(
type: MaterialType.transparency,
type: .transparency,
child: InkWell(
splashColor: const Color(0x44767676),
onTap: increment,
@@ -60,15 +60,15 @@ class BackwardSeekIndicatorState extends State<BackwardSeekIndicator> {
Color(0x88767676),
Color(0x00767676),
],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
begin: .centerLeft,
end: .centerRight,
),
),
alignment: Alignment.center,
alignment: .center,
child: Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: .min,
mainAxisAlignment: .center,
crossAxisAlignment: .center,
children: [
const Icon(
Icons.fast_rewind,
@@ -78,10 +78,7 @@ class BackwardSeekIndicatorState extends State<BackwardSeekIndicator> {
const SizedBox(height: 8.0),
Text(
'快退${duration.inSeconds}',
style: const TextStyle(
fontSize: 12.0,
color: Colors.white,
),
style: const TextStyle(fontSize: 12.0, color: Colors.white),
),
],
),

View File

@@ -52,18 +52,18 @@ class BottomControl extends StatelessWidget {
final bufferedBarColor = primary.withValues(alpha: 0.4);
return Padding(
padding: const EdgeInsets.fromLTRB(10, 0, 10, 12),
padding: const .fromLTRB(10, 0, 10, 12),
child: Column(
mainAxisSize: MainAxisSize.min,
mainAxisSize: .min,
children: [
Padding(
padding: const EdgeInsets.fromLTRB(10, 0, 10, 7),
padding: const .fromLTRB(10, 0, 10, 7),
child: Obx(
() => Offstage(
offstage: !controller.showControls.value,
child: Stack(
clipBehavior: Clip.none,
alignment: Alignment.bottomCenter,
clipBehavior: .none,
alignment: .bottomCenter,
children: [
Obx(() {
final int value = controller.sliderPositionSeconds.value;

View File

@@ -29,7 +29,7 @@ class ComBtn extends StatelessWidget {
onTap: onTap,
onLongPress: onLongPress,
onSecondaryTap: onSecondaryTap,
behavior: HitTestBehavior.opaque,
behavior: .opaque,
child: icon,
),
);

View File

@@ -49,7 +49,7 @@ class ForwardSeekIndicatorState extends State<ForwardSeekIndicator> {
@override
Widget build(BuildContext context) {
return Material(
type: MaterialType.transparency,
type: .transparency,
child: InkWell(
splashColor: const Color(0x44767676),
onTap: increment,
@@ -60,14 +60,14 @@ class ForwardSeekIndicatorState extends State<ForwardSeekIndicator> {
Color(0x00767676),
Color(0x88767676),
],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
begin: .centerLeft,
end: .centerRight,
),
),
alignment: Alignment.center,
alignment: .center,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: .center,
crossAxisAlignment: .center,
children: [
const Icon(
Icons.fast_forward,
@@ -77,10 +77,7 @@ class ForwardSeekIndicatorState extends State<ForwardSeekIndicator> {
const SizedBox(height: 8.0),
Text(
'快进${duration.inSeconds}',
style: const TextStyle(
fontSize: 12.0,
color: Colors.white,
),
style: const TextStyle(fontSize: 12.0, color: Colors.white),
),
],
),

View File

@@ -53,7 +53,7 @@ class PlayOrPauseButtonState extends State<PlayOrPauseButton>
width: 42,
height: 34,
child: GestureDetector(
behavior: HitTestBehavior.opaque,
behavior: .opaque,
onTap: widget.plPlayerController.onDoubleTapCenter,
child: Center(
child: AnimatedIcon(