61 lines
1.9 KiB
Dart
61 lines
1.9 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:tm_app/core/constants/strings.dart';
|
|
import 'package:tm_app/core/theme/colors.dart';
|
|
import 'package:tm_app/core/utils/size_config.dart';
|
|
import 'package:tm_app/views/shared/base_button.dart';
|
|
|
|
class TenderDetailActions extends StatelessWidget {
|
|
final bool isScreenBig;
|
|
const TenderDetailActions({required this.isScreenBig, super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return isScreenBig
|
|
? Row(
|
|
children: [
|
|
Spacer(),
|
|
BaseButton(
|
|
isEnabled: true,
|
|
text: AppStrings.tenderRejectButton,
|
|
textColor: AppColors.red10,
|
|
backgroundColor: AppColors.backgroundColor,
|
|
borderWidth: 1,
|
|
onPressed: () {},
|
|
width: 120.0.w(),
|
|
),
|
|
SizedBox(width: 5.0.w()),
|
|
BaseButton(
|
|
isEnabled: true,
|
|
text: AppStrings.tenderSubmitButton,
|
|
backgroundColor: AppColors.lightBlue,
|
|
textColor: AppColors.primary30,
|
|
onPressed: () {},
|
|
width: 120.0.w(),
|
|
),
|
|
],
|
|
)
|
|
: Column(
|
|
children: [
|
|
BaseButton(
|
|
isEnabled: true,
|
|
text: AppStrings.tenderSubmitButton,
|
|
backgroundColor: AppColors.primary30,
|
|
textColor: AppColors.mainBlue,
|
|
onPressed: () {},
|
|
),
|
|
SizedBox(height: 16.0.h()),
|
|
BaseButton(
|
|
isEnabled: true,
|
|
text: AppStrings.tenderRejectButton,
|
|
borderColor: AppColors.red10,
|
|
textColor: AppColors.red10,
|
|
backgroundColor: AppColors.backgroundColor,
|
|
borderWidth: 1,
|
|
onPressed: () {},
|
|
),
|
|
SizedBox(height: 16.0.h()),
|
|
],
|
|
);
|
|
}
|
|
}
|