-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[소식] 페이지 API 연동 #20
[소식] 페이지 API 연동 #20
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
긴 작업 감사합니다!😄
@@ -0,0 +1 @@ | |||
flutter pub run build_runner build --delete-conflicting-outputs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
어떤 목적의 파일인지 궁금합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
freezed 모델 수정이나 추가하고 새로 생성할 때, 명령어가 길어 까먹는 경우가 많아서 자주 쓰는 명령어이다보니 쉘스크립트로 추가해두면 어떨까 합니다!
// 쉘 스크립트 실행 방법
sh freezed.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
역시.. 너무좋네요 감사합니다 잘 이용하겠습니다 저도 명령어 외우기 은근어렵더라고요
Future<List<dynamic>> getList(String url, | ||
{dynamic param, bool? refresh}) async { | ||
final response = await dio!.get( | ||
url, | ||
queryParameters: param, | ||
options: refresh == true | ||
? dioCacheOptions.copyWith(policy: CachePolicy.refresh).toOptions() | ||
: null, | ||
); | ||
return response.data as List<dynamic>; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
감사합니다!
), | ||
return InkWell( | ||
onTap: () { | ||
Get.back(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get.back()
을 사용하면 전 라우트로돌아가는것 아닌가요?
Get.toNamed("/")
이런식으로 home으로 돌아가는것은 명시하지 않아도되나요?
일단 실행시켜보니 교통에서 소식갔다가 버튼클릭해도 교통가는것이고 홈으로 돌아가서 요구사항대로 잘 작동은 하는 것 같습니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 그렇네요! 네 명시적으로 수정했습니다~
news('새소식', 'NEWS'), | ||
academicInformation('학사정보', 'ACADEMIC_INFO'), | ||
cnuNews('CNU뉴스', 'CNU_NEWS'), | ||
educationalInformation('교육정보', 'EDUCATION_INFO'), | ||
businessGroupStartupAndEducation('사업단 창업, 교육', 'BUSINESS_GROUP_STARTUP'), | ||
recruitmentAndInvitation('채용/초빙', 'RECRUIT_INVITATION'), | ||
univCultureField('대학문화마당', 'UNIV_CULTURE_FIELD'), | ||
cnuMarket('CNU장터', 'CNU_MARKET'), | ||
jobSearch('구인', 'JOB_SEARCH'), | ||
jobOffer('구직', 'JOB_OFFER'), | ||
studyCompetition('스터디 및 공모전', 'STUDY_COMPETITION'), | ||
undefined('', ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
param 도 두번째 인자로 갖고 있는것 좋네요 !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
분기처리 안해도 필드 하나만 추가하면 되는 부분이 enum의 장점인 것 같습니다!
리뷰 수고 많으셨습니다! 감사합니다~ |
Describe your changes
영상으로 확인하기
디자인 변경사항 적용
NoticeModel 필드 수정
백마광장 게시판 연동 및 테스트 완료
news('새소식', 'NEWS'),
academicInformation('학사정보', 'ACADEMIC_INFO'),
cnuNews('CNU뉴스', 'CNU_NEWS'),
educationalInformation('교육정보', 'EDUCATION_INFO'),
businessGroupStartupAndEducation('사업단 창업, 교육', 'BUSINESS_GROUP_STARTUP'),
recruitmentAndInvitation('채용/초빙', 'RECRUIT_INVITATION'),
univCultureField('대학문화마당', 'UNIV_CULTURE_FIELD'),
cnuMarket('CNU장터', 'CNU_MARKET'),
jobSearch('구인', 'JOB_SEARCH'),
jobOffer('구직', 'JOB_OFFER'),
studyCompetition('스터디 및 공모전', 'STUDY_COMPETITION'),
국제교류본부 게시판 연동 및 테스트 완료
studentRecruiting('Student Recruiting', 'STUDENT_RECRUIT'),
event('Event', 'EVENT'),
jobAndCareer('Job&Career', 'JOB_CAREER'),
formAndData('Form&Data', 'FORM_DATA'),
Fixes #18
Checklist
Next Step Todo (optional)
Questions