Merge pull request 'fixed rported jira issues' (#127) from fix_issues into main

Reviewed-on: https://repo.ravanertebat.com/TM/tm_app/pulls/127
This commit is contained in:
a.ghabeli
2025-09-14 12:09:23 +03:30
3 changed files with 43 additions and 31 deletions
@@ -120,7 +120,7 @@ class TenderDetailActions extends StatelessWidget {
? BaseButton( ? BaseButton(
isEnabled: true, isEnabled: true,
text: TenderDetailsStrings.tenderRejectButton, text: TenderDetailsStrings.tenderRejectButton,
textColor: AppColors.red10, textColor: AppColors.errorColor,
backgroundColor: AppColors.backgroundColor, backgroundColor: AppColors.backgroundColor,
borderWidth: 1, borderWidth: 1,
onPressed: () {}, onPressed: () {},
@@ -129,7 +129,7 @@ class TenderDetailActions extends StatelessWidget {
: BaseButton( : BaseButton(
isEnabled: true, isEnabled: true,
text: TenderDetailsStrings.tenderRejectButton, text: TenderDetailsStrings.tenderRejectButton,
textColor: AppColors.red10, textColor: AppColors.errorColor,
backgroundColor: AppColors.backgroundColor, backgroundColor: AppColors.backgroundColor,
borderWidth: 1, borderWidth: 1,
onPressed: () { onPressed: () {
@@ -10,7 +10,7 @@ class ProfileStrings {
static const String registrationNumber = 'Registration No.'; static const String registrationNumber = 'Registration No.';
static const String businessType = 'Business Type'; static const String businessType = 'Business Type';
static const String founded = 'Founded'; static const String founded = 'Founded';
static const String logout = 'Logout'; static const String logout = 'Log out';
static const String contracts = 'Contracts'; static const String contracts = 'Contracts';
static const String notifications = 'Notifications'; static const String notifications = 'Notifications';
} }
@@ -141,20 +141,26 @@ class _MainTendersSliderState extends State<MainTendersSlider> {
} }
Widget _leftArrowButton() { Widget _leftArrowButton() {
return InkWell( return Visibility(
borderRadius: BorderRadius.circular(100), visible: currentPage != 1,
onTap: _goToPreviousPage, child: InkWell(
child: Container( borderRadius: BorderRadius.circular(100),
width: 32.0.h(), onTap: _goToPreviousPage,
height: 32.0.h(), child: Container(
decoration: BoxDecoration( width: 32.0.h(),
shape: BoxShape.circle, height: 32.0.h(),
border: Border.all(color: AppColors.iconColor, width: 1.5), decoration: BoxDecoration(
), shape: BoxShape.circle,
alignment: Alignment.center, border: Border.all(color: AppColors.iconColor, width: 1.5),
child: SvgPicture.asset( ),
AssetsManager.arrowLeftSmall, alignment: Alignment.center,
colorFilter: ColorFilter.mode(AppColors.iconColor, BlendMode.srcATop), child: SvgPicture.asset(
AssetsManager.arrowLeftSmall,
colorFilter: ColorFilter.mode(
AppColors.iconColor,
BlendMode.srcATop,
),
),
), ),
), ),
); );
@@ -190,20 +196,26 @@ class _MainTendersSliderState extends State<MainTendersSlider> {
} }
Widget _rightArrowButton() { Widget _rightArrowButton() {
return InkWell( return Visibility(
borderRadius: BorderRadius.circular(100), visible: currentPage != widget.tenders.length,
onTap: _goToNextPage, child: InkWell(
child: Container( borderRadius: BorderRadius.circular(100),
width: 32.0.h(), onTap: _goToNextPage,
height: 32.0.h(), child: Container(
decoration: BoxDecoration( width: 32.0.h(),
shape: BoxShape.circle, height: 32.0.h(),
border: Border.all(color: AppColors.iconColor, width: 1.5), decoration: BoxDecoration(
), shape: BoxShape.circle,
alignment: Alignment.center, border: Border.all(color: AppColors.iconColor, width: 1.5),
child: SvgPicture.asset( ),
AssetsManager.arrowRightSmall, alignment: Alignment.center,
colorFilter: ColorFilter.mode(AppColors.iconColor, BlendMode.srcATop), child: SvgPicture.asset(
AssetsManager.arrowRightSmall,
colorFilter: ColorFilter.mode(
AppColors.iconColor,
BlendMode.srcATop,
),
),
), ),
), ),
); );