fixed rtl supoort in some pages
This commit is contained in:
@@ -182,7 +182,7 @@ class DesktopHomePage extends StatelessWidget {
|
||||
return ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 740),
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
alignment: AlignmentDirectional.centerStart,
|
||||
child: Text(
|
||||
isYourTenders
|
||||
? HomeStrings.yourTenders
|
||||
|
||||
@@ -31,6 +31,7 @@ class TenderCard extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final directionality = Directionality.of(context);
|
||||
return InkWell(
|
||||
onTap: enableTap ? onTap : null,
|
||||
child: Container(
|
||||
@@ -67,7 +68,15 @@ class TenderCard extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
enableTap
|
||||
? SvgPicture.asset(AssetsManager.arrowRight)
|
||||
? SvgPicture.asset(
|
||||
directionality == TextDirection.rtl
|
||||
? AssetsManager.leftArrow
|
||||
: AssetsManager.arrowRight,
|
||||
colorFilter: ColorFilter.mode(
|
||||
AppColors.grey50,
|
||||
BlendMode.srcIn,
|
||||
),
|
||||
)
|
||||
: const SizedBox(),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -87,9 +87,10 @@ class TendersListItem extends StatelessWidget {
|
||||
width: double.infinity,
|
||||
child: Text(
|
||||
tender.description!,
|
||||
textAlign: TextAlign.left,
|
||||
textAlign: TextAlign.start,
|
||||
maxLines: 4,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
|
||||
style: TextStyle(
|
||||
fontSize: 14.0.sp(),
|
||||
fontWeight: FontWeight.w400,
|
||||
|
||||
Reference in New Issue
Block a user