|
|
|
|
@ -37,7 +37,7 @@ class _CommentsBottomSheetState extends State<CommentsBottomSheet> {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
final commentsProvider = Provider.of<CommentsProvider>(context);
|
|
|
|
|
final commentsProvider = Provider.of<CommentsProvider>(context, listen: false);
|
|
|
|
|
final userProvider = Provider.of<UserProvider>(context, listen: false);
|
|
|
|
|
return Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.55,
|
|
|
|
|
@ -50,7 +50,9 @@ class _CommentsBottomSheetState extends State<CommentsBottomSheet> {
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 16.toScreenWidth, vertical: 8.toScreenHeight),
|
|
|
|
|
child: Form(
|
|
|
|
|
key: _formKey,
|
|
|
|
|
child: LoadingManager(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
LoadingManager(
|
|
|
|
|
isLoading: commentsProvider.isLoading,
|
|
|
|
|
isFailedLoading: commentsProvider.comments == null,
|
|
|
|
|
stateCode: commentsProvider.stateCode,
|
|
|
|
|
@ -99,8 +101,11 @@ class _CommentsBottomSheetState extends State<CommentsBottomSheet> {
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
).expanded,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).expanded,
|
|
|
|
|
if (userProvider.user.type == UsersTypes.normal_user) 8.height,
|
|
|
|
|
if (userProvider.user.type == UsersTypes.normal_user)
|
|
|
|
|
if (userProvider.user.type == UsersTypes.normal_user) // todo its keeps loading when open keyboard or dismiss
|
|
|
|
|
AppTextFormField(
|
|
|
|
|
labelText: "Type any comment",
|
|
|
|
|
backgroundColor: AppColor.neutral30,
|
|
|
|
|
@ -123,7 +128,6 @@ class _CommentsBottomSheetState extends State<CommentsBottomSheet> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|