ui fixes
This commit is contained in:
parent
2566c39f44
commit
11dbb32a1a
|
|
@ -47,7 +47,7 @@ class ButtonWidget extends StatelessWidget {
|
|||
BoldTextWidget(
|
||||
title,
|
||||
fontSize: fontSize,
|
||||
color: Colors.white,
|
||||
color: textColor ?? Colors.white,
|
||||
).paddingSymmetric(horizontal: 10),
|
||||
])
|
||||
: isLoading!
|
||||
|
|
@ -63,7 +63,7 @@ class ButtonWidget extends StatelessWidget {
|
|||
title,
|
||||
fontSize: fontSize,
|
||||
textAlign: TextAlign.center,
|
||||
color: Colors.white,
|
||||
color: textColor ?? Colors.white,
|
||||
).paddingSymmetric(horizontal: 20),
|
||||
),
|
||||
SizedBox(
|
||||
|
|
@ -79,7 +79,7 @@ class ButtonWidget extends StatelessWidget {
|
|||
title,
|
||||
fontSize: fontSize,
|
||||
textAlign: TextAlign.center,
|
||||
color: Colors.white,
|
||||
color: textColor ?? Colors.white,
|
||||
),
|
||||
).onTap(() {
|
||||
if (isLoading == null || !isLoading!) onTap();
|
||||
|
|
|
|||
|
|
@ -22,7 +22,9 @@ class HeaderScreen extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return Row(
|
||||
children: [
|
||||
Obx(() => (!homeController.isArabic.value)
|
||||
SizedBox(
|
||||
width: 24,
|
||||
child: Obx(() => (!homeController.isArabic.value)
|
||||
? SvgPicture.asset(
|
||||
"assets/icons/arrow-left.svg",
|
||||
width: Responsive.isTablet() ? 25 : null,
|
||||
|
|
@ -39,6 +41,7 @@ class HeaderScreen extends StatelessWidget {
|
|||
)).onTap(() {
|
||||
RoutingManager.back();
|
||||
}),
|
||||
),
|
||||
BoldTextWidget(
|
||||
title,
|
||||
fontSize: Responsive.isTablet() ? 24 : 18,
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class NewVoiceMessage extends StatelessWidget {
|
|||
key: dismissibleKey,
|
||||
onDismissed: null,
|
||||
child: SizedBox(
|
||||
width: Get.width * 0.6,
|
||||
width: Get.width * 0.58,
|
||||
height: 70,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
|
|
@ -214,12 +214,12 @@ class NewVoiceMessage extends StatelessWidget {
|
|||
: const PlayerWaveStyle(),
|
||||
waveformData: Constants.defaulWaveFormData,
|
||||
size: homeController.isArabic.value
|
||||
? const Size(139, 30.0)
|
||||
: const Size(149, 30.0),
|
||||
? const Size(118, 30.0)
|
||||
: const Size(130, 30.0),
|
||||
waveformType: WaveformType.long,
|
||||
playerController: playerController,
|
||||
).paddingOnly(
|
||||
left: homeController.isArabic.value ? 18 : 8,
|
||||
left: homeController.isArabic.value ? 4 : 8,
|
||||
),
|
||||
),
|
||||
Visibility(
|
||||
|
|
@ -239,13 +239,13 @@ class NewVoiceMessage extends StatelessWidget {
|
|||
)
|
||||
: const PlayerWaveStyle(),
|
||||
size: homeController.isArabic.value
|
||||
? const Size(139, 30.0)
|
||||
: const Size(159, 30.0),
|
||||
? const Size(118, 30.0)
|
||||
: const Size(130, 30.0),
|
||||
waveformType: WaveformType.long,
|
||||
playerController: playerController,
|
||||
enableSeekGesture: false,
|
||||
).paddingOnly(
|
||||
left: homeController.isArabic.value ? 18 : 8,
|
||||
left: homeController.isArabic.value ? 4 : 8,
|
||||
);
|
||||
} on Exception {
|
||||
return AudioFileWaveforms(
|
||||
|
|
@ -261,12 +261,12 @@ class NewVoiceMessage extends StatelessWidget {
|
|||
enableSeekGesture: false,
|
||||
waveformData: Constants.defaulWaveFormData,
|
||||
size: homeController.isArabic.value
|
||||
? const Size(139, 30.0)
|
||||
: const Size(159, 30.0),
|
||||
? const Size(118, 30.0)
|
||||
: const Size(130, 30.0),
|
||||
waveformType: WaveformType.long,
|
||||
playerController: playerController,
|
||||
).paddingOnly(
|
||||
left: homeController.isArabic.value ? 18 : 8,
|
||||
left: homeController.isArabic.value ? 4 : 8,
|
||||
);
|
||||
}
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user