This commit is contained in:
MhdZiadHirati 2023-10-22 13:17:43 +03:00
parent 2566c39f44
commit 11dbb32a1a
3 changed files with 33 additions and 30 deletions

View File

@ -47,7 +47,7 @@ class ButtonWidget extends StatelessWidget {
BoldTextWidget( BoldTextWidget(
title, title,
fontSize: fontSize, fontSize: fontSize,
color: Colors.white, color: textColor ?? Colors.white,
).paddingSymmetric(horizontal: 10), ).paddingSymmetric(horizontal: 10),
]) ])
: isLoading! : isLoading!
@ -63,7 +63,7 @@ class ButtonWidget extends StatelessWidget {
title, title,
fontSize: fontSize, fontSize: fontSize,
textAlign: TextAlign.center, textAlign: TextAlign.center,
color: Colors.white, color: textColor ?? Colors.white,
).paddingSymmetric(horizontal: 20), ).paddingSymmetric(horizontal: 20),
), ),
SizedBox( SizedBox(
@ -79,7 +79,7 @@ class ButtonWidget extends StatelessWidget {
title, title,
fontSize: fontSize, fontSize: fontSize,
textAlign: TextAlign.center, textAlign: TextAlign.center,
color: Colors.white, color: textColor ?? Colors.white,
), ),
).onTap(() { ).onTap(() {
if (isLoading == null || !isLoading!) onTap(); if (isLoading == null || !isLoading!) onTap();

View File

@ -22,7 +22,9 @@ class HeaderScreen extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Row( return Row(
children: [ children: [
Obx(() => (!homeController.isArabic.value) SizedBox(
width: 24,
child: Obx(() => (!homeController.isArabic.value)
? SvgPicture.asset( ? SvgPicture.asset(
"assets/icons/arrow-left.svg", "assets/icons/arrow-left.svg",
width: Responsive.isTablet() ? 25 : null, width: Responsive.isTablet() ? 25 : null,
@ -39,6 +41,7 @@ class HeaderScreen extends StatelessWidget {
)).onTap(() { )).onTap(() {
RoutingManager.back(); RoutingManager.back();
}), }),
),
BoldTextWidget( BoldTextWidget(
title, title,
fontSize: Responsive.isTablet() ? 24 : 18, fontSize: Responsive.isTablet() ? 24 : 18,

View File

@ -50,7 +50,7 @@ class NewVoiceMessage extends StatelessWidget {
key: dismissibleKey, key: dismissibleKey,
onDismissed: null, onDismissed: null,
child: SizedBox( child: SizedBox(
width: Get.width * 0.6, width: Get.width * 0.58,
height: 70, height: 70,
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
@ -214,12 +214,12 @@ class NewVoiceMessage extends StatelessWidget {
: const PlayerWaveStyle(), : const PlayerWaveStyle(),
waveformData: Constants.defaulWaveFormData, waveformData: Constants.defaulWaveFormData,
size: homeController.isArabic.value size: homeController.isArabic.value
? const Size(139, 30.0) ? const Size(118, 30.0)
: const Size(149, 30.0), : const Size(130, 30.0),
waveformType: WaveformType.long, waveformType: WaveformType.long,
playerController: playerController, playerController: playerController,
).paddingOnly( ).paddingOnly(
left: homeController.isArabic.value ? 18 : 8, left: homeController.isArabic.value ? 4 : 8,
), ),
), ),
Visibility( Visibility(
@ -239,13 +239,13 @@ class NewVoiceMessage extends StatelessWidget {
) )
: const PlayerWaveStyle(), : const PlayerWaveStyle(),
size: homeController.isArabic.value size: homeController.isArabic.value
? const Size(139, 30.0) ? const Size(118, 30.0)
: const Size(159, 30.0), : const Size(130, 30.0),
waveformType: WaveformType.long, waveformType: WaveformType.long,
playerController: playerController, playerController: playerController,
enableSeekGesture: false, enableSeekGesture: false,
).paddingOnly( ).paddingOnly(
left: homeController.isArabic.value ? 18 : 8, left: homeController.isArabic.value ? 4 : 8,
); );
} on Exception { } on Exception {
return AudioFileWaveforms( return AudioFileWaveforms(
@ -261,12 +261,12 @@ class NewVoiceMessage extends StatelessWidget {
enableSeekGesture: false, enableSeekGesture: false,
waveformData: Constants.defaulWaveFormData, waveformData: Constants.defaulWaveFormData,
size: homeController.isArabic.value size: homeController.isArabic.value
? const Size(139, 30.0) ? const Size(118, 30.0)
: const Size(159, 30.0), : const Size(130, 30.0),
waveformType: WaveformType.long, waveformType: WaveformType.long,
playerController: playerController, playerController: playerController,
).paddingOnly( ).paddingOnly(
left: homeController.isArabic.value ? 18 : 8, left: homeController.isArabic.value ? 4 : 8,
); );
} }
}), }),