ui fixes
This commit is contained in:
parent
2566c39f44
commit
11dbb32a1a
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -22,23 +22,26 @@ class HeaderScreen extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Row(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
Obx(() => (!homeController.isArabic.value)
|
SizedBox(
|
||||||
? SvgPicture.asset(
|
width: 24,
|
||||||
"assets/icons/arrow-left.svg",
|
child: Obx(() => (!homeController.isArabic.value)
|
||||||
width: Responsive.isTablet() ? 25 : null,
|
? SvgPicture.asset(
|
||||||
colorFilter: (iconColor != null)
|
"assets/icons/arrow-left.svg",
|
||||||
? ColorFilter.mode(iconColor!, BlendMode.srcIn)
|
width: Responsive.isTablet() ? 25 : null,
|
||||||
: null,
|
colorFilter: (iconColor != null)
|
||||||
)
|
? ColorFilter.mode(iconColor!, BlendMode.srcIn)
|
||||||
: SvgPicture.asset(
|
: null,
|
||||||
"assets/icons/arrow right.svg",
|
)
|
||||||
width: Responsive.isTablet() ? 20 : null,
|
: SvgPicture.asset(
|
||||||
colorFilter: (iconColor != null)
|
"assets/icons/arrow right.svg",
|
||||||
? ColorFilter.mode(iconColor!, BlendMode.srcIn)
|
width: Responsive.isTablet() ? 20 : null,
|
||||||
: null,
|
colorFilter: (iconColor != null)
|
||||||
)).onTap(() {
|
? ColorFilter.mode(iconColor!, BlendMode.srcIn)
|
||||||
RoutingManager.back();
|
: null,
|
||||||
}),
|
)).onTap(() {
|
||||||
|
RoutingManager.back();
|
||||||
|
}),
|
||||||
|
),
|
||||||
BoldTextWidget(
|
BoldTextWidget(
|
||||||
title,
|
title,
|
||||||
fontSize: Responsive.isTablet() ? 24 : 18,
|
fontSize: Responsive.isTablet() ? 24 : 18,
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user