|
|
|
|
@ -3,6 +3,9 @@ import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:test_sa/extensions/widget_extensions.dart';
|
|
|
|
|
import 'package:test_sa/new_views/app_style/app_color.dart';
|
|
|
|
|
import 'package:test_sa/new_views/app_style/app_text_style.dart';
|
|
|
|
|
import 'package:test_sa/views/app_style/sizing.dart';
|
|
|
|
|
|
|
|
|
|
import '../../app_style/colors.dart';
|
|
|
|
|
|
|
|
|
|
class ASoundPlayer extends StatefulWidget {
|
|
|
|
|
final String audio;
|
|
|
|
|
@ -28,7 +31,7 @@ class _ASoundPlayerState extends State<ASoundPlayer> {
|
|
|
|
|
width: 48,
|
|
|
|
|
height: 48,
|
|
|
|
|
decoration: ShapeDecoration(
|
|
|
|
|
color: Theme.of(context).cardColor,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
side: const BorderSide(width: 1, color: Color(0xFFEAF1F4)),
|
|
|
|
|
borderRadius: BorderRadius.circular(32),
|
|
|
|
|
@ -36,7 +39,7 @@ class _ASoundPlayerState extends State<ASoundPlayer> {
|
|
|
|
|
),
|
|
|
|
|
child: Icon(
|
|
|
|
|
icon,
|
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
|
color: const Color(0xff163A51).withOpacity(0.5),
|
|
|
|
|
),
|
|
|
|
|
).onPress(onpress);
|
|
|
|
|
}
|
|
|
|
|
@ -179,7 +182,7 @@ class _ASoundPlayerState extends State<ASoundPlayer> {
|
|
|
|
|
value: _audioPosition?.inMilliseconds?.toDouble() ?? 0.0,
|
|
|
|
|
min: 0,
|
|
|
|
|
max: _audioTime?.inMilliseconds?.toDouble() ?? 60.0,
|
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
|
activeColor: AppColor.primary70,
|
|
|
|
|
inactiveColor: AppColor.neutral30,
|
|
|
|
|
onChangeStart: (value) {
|
|
|
|
|
_sliderMoving = true;
|
|
|
|
|
|