|
|
|
|
@ -73,25 +73,26 @@ class _ChatWidgetState extends State<ChatWidget> {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Consumer<ChatProvider>(builder: (pContext, requestProvider, _) {
|
|
|
|
|
return IconButton(
|
|
|
|
|
icon: const Icon(Icons.chat_bubble),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
CupertinoPageRoute(
|
|
|
|
|
builder: (context) => ChatPage(
|
|
|
|
|
moduleId: widget.moduleId,
|
|
|
|
|
requestId: widget.requestId,
|
|
|
|
|
title: widget.title,
|
|
|
|
|
readOnly: widget.isReadOnly,
|
|
|
|
|
assigneeEmployeeNumber: widget.assigneeEmployeeNumber,
|
|
|
|
|
contactEmployeeINumber: widget.contactEmployeeINumber,
|
|
|
|
|
myLoginUserID: widget.myLoginUserID,
|
|
|
|
|
)));
|
|
|
|
|
},
|
|
|
|
|
).toShimmer(context: context, isShow: requestProvider.chatLoginTokenLoading, radius: 30, height: 30, width: 30);
|
|
|
|
|
});
|
|
|
|
|
;
|
|
|
|
|
return widget.isShow
|
|
|
|
|
? Consumer<ChatProvider>(builder: (pContext, requestProvider, _) {
|
|
|
|
|
return IconButton(
|
|
|
|
|
icon: const Icon(Icons.chat_bubble),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
CupertinoPageRoute(
|
|
|
|
|
builder: (context) => ChatPage(
|
|
|
|
|
moduleId: widget.moduleId,
|
|
|
|
|
requestId: widget.requestId,
|
|
|
|
|
title: widget.title,
|
|
|
|
|
readOnly: widget.isReadOnly,
|
|
|
|
|
assigneeEmployeeNumber: widget.assigneeEmployeeNumber,
|
|
|
|
|
contactEmployeeINumber: widget.contactEmployeeINumber,
|
|
|
|
|
myLoginUserID: widget.myLoginUserID,
|
|
|
|
|
)));
|
|
|
|
|
},
|
|
|
|
|
).toShimmer(context: context, isShow: requestProvider.chatLoginTokenLoading, radius: 30, height: 30, width: 30);
|
|
|
|
|
})
|
|
|
|
|
: const SizedBox();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|