Merge pull request 'fixes' (#62) from fixes into main
Reviewed-on: https://repo.ravanertebat.com/TM/tm_app/pulls/62
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,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class ApprovedTenders extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return approvedTenders.data == null
|
return approvedTenders.data == null
|
||||||
? const Center(child: Text('No data available'))
|
? const Center(child: Text('No approved projects yet.'))
|
||||||
: ListView.builder(
|
: ListView.builder(
|
||||||
padding: const EdgeInsets.only(top: 20),
|
padding: const EdgeInsets.only(top: 20),
|
||||||
itemCount: approvedTenders.data!.length,
|
itemCount: approvedTenders.data!.length,
|
||||||
|
|||||||
Reference in New Issue
Block a user