Skip to content

Commit

Permalink
feat : 게시글 생성 카테고리 결정
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbuly authored and jia5232 committed Aug 20, 2024
1 parent 83ff9ce commit 5afea30
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion frontend/lib/board/view/msg_board_add_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import 'package:frontend/board/layout/text_with_icon.dart';
import 'package:frontend/board/model/exception_model.dart';
import 'package:frontend/board/model/msg_board_response_model.dart';
import 'package:frontend/board/model/recruitment_response_model.dart';
import 'package:frontend/board/provider/api_category_provider.dart';
import 'package:frontend/board/provider/board_add_provider.dart';
import 'package:frontend/board/provider/board_state_notifier_provider.dart';
import 'package:frontend/board/provider/image_provider.dart';
Expand Down Expand Up @@ -95,7 +96,7 @@ class _MsgBoardAddScreenState extends ConsumerState<MsgBoardAddScreen> {

canUpload = writedTitle = writedContent = true;
}
}
} else {}

titleController = TextEditingController(text: title);
contentController = TextEditingController(text: content);
Expand All @@ -116,6 +117,15 @@ class _MsgBoardAddScreenState extends ConsumerState<MsgBoardAddScreen> {
height = MediaQuery.of(context).size.height;

debugPrint("크기 : $width $height");

final communityTitle = ref.watch(categoryTitleProvider);
final isHot = ref.watch(isHotProvider);
debugPrint("$communityTitle 이게 클릭?");
if (communityTitle == null || isHot) {
selectCategory = "자유";
} else {
selectCategory = categoryCodesReverseList2[communityTitle]!;
}
}

void editPersonListener() {
Expand Down

0 comments on commit 5afea30

Please sign in to comment.