fixed laoding button
This commit is contained in:
@@ -49,13 +49,18 @@ class TenderDetailActions extends StatelessWidget {
|
|||||||
Consumer<TenderDetailViewModel>(
|
Consumer<TenderDetailViewModel>(
|
||||||
builder: (context, viewModel, child) {
|
builder: (context, viewModel, child) {
|
||||||
return viewModel.isSubmitApprovalLoading
|
return viewModel.isSubmitApprovalLoading
|
||||||
? BaseButton(
|
? Container(
|
||||||
isEnabled: true,
|
height: 56.0.h(),
|
||||||
text: AppStrings.tenderSubmitButton,
|
width: double.infinity,
|
||||||
backgroundColor: AppColors.primary30,
|
decoration: BoxDecoration(
|
||||||
textColor: AppColors.mainBlue,
|
color: AppColors.primary30,
|
||||||
isLoading: true,
|
borderRadius: BorderRadius.circular(100.0),
|
||||||
onPressed: () {},
|
),
|
||||||
|
child: Center(
|
||||||
|
child: CircularProgressIndicator(
|
||||||
|
color: AppColors.mainBlue,
|
||||||
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
: BaseButton(
|
: BaseButton(
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class BaseButton extends StatelessWidget {
|
|||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: 55.0.h(),
|
height: 55.0.h(),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: AppColors.backgroundColor,
|
color: AppColors.mainBlue,
|
||||||
borderRadius: BorderRadius.circular(28.0.w()),
|
borderRadius: BorderRadius.circular(28.0.w()),
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
|
|||||||
Reference in New Issue
Block a user