forked from eatvio/eatvio_app
fixed pagination
This commit is contained in:
@@ -101,8 +101,9 @@ class ProfileCubit extends Cubit<ProfileState> {
|
||||
}) async {
|
||||
try {
|
||||
return (await chatRepository.getChatRoomIdByUserSlug(slug: slug)).id;
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
} catch (e, st) {
|
||||
log(e.toString(), stackTrace: st);
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1079,7 +1079,9 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
onTap: () async {
|
||||
GoRouter.of(context).pushNamed(
|
||||
'chatScreen',
|
||||
extra: await profileCubit.getChatRoomIdBySlug(slug: widget.author!.authorSlug),
|
||||
extra: {
|
||||
'chatId': await profileCubit.getChatRoomIdBySlug(slug: widget.author!.authorSlug),
|
||||
},
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
|
||||
@@ -62,8 +62,10 @@ class _SubActionButtonWidgetState extends State<SubActionButtonWidget> {
|
||||
return InkWell(
|
||||
onTap: () async {
|
||||
GoRouter.of(context).pushNamed(
|
||||
'chatScreen',
|
||||
extra: await sl<ProfileCubit>().getChatRoomIdBySlug(slug: widget.slug),
|
||||
'chatScreen',
|
||||
extra: {
|
||||
'chatId': await sl<ProfileCubit>().getChatRoomIdBySlug(slug: widget.slug),
|
||||
},
|
||||
);
|
||||
},
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
|
||||
Reference in New Issue
Block a user