|
|
|
|
@ -113,8 +113,7 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
|
|
|
|
|
} else {
|
|
|
|
|
cProvider.buildHubConnection();
|
|
|
|
|
Future.delayed(const Duration(seconds: 2), () {
|
|
|
|
|
if(AppState().chatDetails != null)
|
|
|
|
|
cProvider.invokeChatCounter(userId: AppState().chatDetails!.response!.id!);
|
|
|
|
|
if (AppState().chatDetails != null) cProvider.invokeChatCounter(userId: AppState().chatDetails!.response!.id!);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -520,8 +519,8 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
|
|
|
|
|
itemBuilder: (BuildContext cxt, int index) {
|
|
|
|
|
return model.isOffersLoading
|
|
|
|
|
? const OffersShimmerWidget()
|
|
|
|
|
: data.getOffersList.isNotEmpty
|
|
|
|
|
? InkWell(
|
|
|
|
|
: data.getOffersList.isNotEmpty
|
|
|
|
|
? InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
navigateToDetails(data.getOffersList[index]);
|
|
|
|
|
},
|
|
|
|
|
@ -557,8 +556,8 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Container();
|
|
|
|
|
)
|
|
|
|
|
: Container();
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) => 8.width,
|
|
|
|
|
itemCount: model.isOffersLoading ? 9 : (data.getOffersList.length > 9 ? 9 : data.getOffersList.length),
|
|
|
|
|
|