Skip to content

Commit

Permalink
fix comment on comment
Browse files Browse the repository at this point in the history
  • Loading branch information
adlerluiz committed Dec 24, 2022
1 parent 6c25b3b commit d185a56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions lib/page/content/content_view_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class _ContentViewPageState extends State<ContentViewPage> {

late bool showResponseButton = true;

ValueNotifier<bool> canComment = ValueNotifier(false);
//ValueNotifier<bool> canComment = ValueNotifier(false);

LaunchMode launchUrlMode = LaunchMode.inAppWebView;

Expand Down Expand Up @@ -129,11 +129,11 @@ class _ContentViewPageState extends State<ContentViewPage> {

Future<dynamic> getData() async {
try {
canComment.value = true;
//canComment.value = true;
return await apiContent.get(
widget.contentData.ownerUsername!, widget.contentData.slug!);
} catch (e) {
canComment.value = false;
//canComment.value = false;
return Future.error(e);
}
}
Expand Down Expand Up @@ -517,7 +517,8 @@ class _ContentViewPageState extends State<ContentViewPage> {
MaterialPageRoute<dynamic>(
builder: (context) => ContentFormCommentPage(
id: widget.contentData.id!,
title: widget.contentData.title!,
title: widget.contentData.title ??
widget.contentData.body!,
),
),
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Conteúdos para quem trabalha com Programação e Tecnologia.

publish_to: 'none'

version: 1.0.3+4
version: 1.0.5+6

environment:
sdk: '>=2.18.5 <3.0.0'
Expand Down

0 comments on commit d185a56

Please sign in to comment.