-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: enable multi dex * design: Color 추가 * feat: 온보딩 스크린 구현 * fix: 온보딩 로그인 후 뒤로가기가 되는 버그 수정 * refactor: 하단 패딩 증가 및 기타 리팩토링 * feat: 성장일기 UI 1 * style: 코멘트 추가 * feat: 미션 화면 및 보호소 화면 새로운 UI 적용 (#17) * fix: enable multi dex * [AM-322] update: 새로운 디자인을 적용하여 미션 목록 화면 개편 * [AM-322] update: 새로운 디자인을 적용하여 미션 디테일 화면 개선 * [AM-322] update: 새로운 디자인의 하단 탭 적용 * [AM-322] fix: 미션 카드 UX 개선 및 중급 미션 두번 나오는 문제 해결 * feat: 캐릭터 화면에 새로운 UI 적용 Co-authored-by: Namju Kim <[email protected]> * fix: import 오류 수정 * style: controller -> viewModel 이름 변경 * feat: 온보딩 이름 체크 기능 추가 * feat: model viewer 라이브러리 * feat: model_viewer_plus 라이브러리 * feat: 성장 일기 화면 without server * style: 컴포넌트 분리 * [AM-334] feat: 성장일기 view model * style: 위젯 이름 변경 * fix: 오타수정 * [AM-342] feat: 온보딩 기능 구현 * [AM-340] feat: 미션 수행 결과 다이얼로그 * feat: Grow ViewModel 수정: 로컬 저장 로직 제거 * [AM-340] feat: 레벨업 다이얼로그 * delete: stageup_dialog.dart * [AM-340] feat: 유저이름 수정 다이얼로그 * [AM-338] feat: 설정화면 * design: 푸시알림 다이얼로그 디자인 변경 * [AM-353] feat: 보호소 화면 성장일기, 추억저장소 추가 * [AM-354] feat: 미션 완료여부 체크 및 유저 정보 연동 * [AM-324] feat: API 콘텐트 타입 수정 * [AM-340] design: 미션 성공 다이얼로그 수정 * [AM-353, AM-354] feat: 먹이주기 연동, 레벨업 다이얼로그 이벤트 생성, 타이머 버그 수정, 온보딩 로그인 버그 수정 * [AM-338, AM-354] feat: 미션수행 기록 화면, 애플 로그인 유저 이름 연동 * [AM-329] feat: 미션상세 화면 제출 사진 표시 * refactor: 캐릭터 엔티티, 모델 변경 * fix: 앱 버전 체크 try catch * [AM-338] feat: 미션 히스토리 반려사유 표시 * design: 앱 아이콘 변경 * [AM-324] feat: 카테고리로 미션 분류하는 기능 추가 * chore: 디버그 로그 추가 * fix: 온보딩 수정, 자동 로그인시 정보 불러오기 * feat: 공지사항 기능 추가 * feat: 첫 접속시 로컬 데이터 삭제 * feat: 베타 유저 보상 기능 * [AM-334] refactor: GrowHistory 관련 엔티티, 모델 수정 * feat:[AM-334] feat: 성장일기 repository 구현 * [AM-334] feat: 성장일기 서버 연동 * feat: 로티 변경 * fix: 다이얼로그 오타 수정 * fix: 미션 제출 시 카메라 중복으로 열리는 문제 해결 * Cached Network Image로 이미지 대체 * fix: 로그아웃 버그 수정 * feat: 캐릭터 애니메이션 추가 및 잡버그 FIX * fix: 보상 받기 버그 fix 및 캐릭터 이미지 변경 * fix: 애니메이션 일정하지 않은 버그 수정 * feat: 앱 아이콘 변경 * fix: 앱 이름 변경 * feat: 배너 추가 * feat: 웹뷰 로딩 인디케이터 추가 * chore: 패키지 의존성 수정 * fix: FB 패키지 삭제 Co-authored-by: jinsubaekdev <[email protected]> Co-authored-by: Jinsu Baek <[email protected]>
- Loading branch information
1 parent
67b647c
commit f0f8881
Showing
19 changed files
with
377 additions
and
11 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,4 +96,4 @@ post_install do |installer| | |
end | ||
# End of the permission_handler configuration | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
part 'banner_info_entity.g.dart'; | ||
|
||
@JsonSerializable() | ||
class BannerInfoEntity { | ||
|
||
String imageUrl; | ||
String contentUrl; | ||
|
||
BannerInfoEntity({ | ||
required this.imageUrl, | ||
required this.contentUrl, | ||
}); | ||
|
||
factory BannerInfoEntity.fromJson(Map<String, dynamic> json) => _$BannerInfoEntityFromJson(json); | ||
Map<String, dynamic> toJson() => _$BannerInfoEntityToJson(this); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import 'package:amond/data/source/network/api/banner_api.dart'; | ||
import 'package:amond/domain/models/banner_info.dart'; | ||
import 'package:amond/domain/repositories/banner_repository.dart'; | ||
|
||
class BannerRepositoryImpl implements BannerRepository { | ||
final BannerApi _api; | ||
BannerRepositoryImpl(this._api); | ||
|
||
@override | ||
Future<List<BannerInfo>> getBannerInfo() async { | ||
final entityList = await _api.getBannerInfo(); | ||
return entityList.map((e) => BannerInfo.fromEntity(e)).toList(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import 'dart:convert'; | ||
|
||
import 'package:amond/data/entity/banner_info_entity.dart'; | ||
import 'package:amond/data/source/network/base_url.dart'; | ||
import 'package:amond/utils/auth/auth_info.dart'; | ||
import 'package:flutter/foundation.dart' show kDebugMode; | ||
import 'package:http/http.dart' as http; | ||
|
||
class BannerApi { | ||
Future<List<BannerInfoEntity>> getBannerInfo() async { | ||
final url = Uri.parse('$baseUrl/banners'); | ||
final response = await http.get(url, headers: { | ||
'Authorization': 'Bearer $globalToken', | ||
'Content-type': 'application/json', | ||
}); | ||
final Map<String, dynamic> json = | ||
jsonDecode(utf8.decode(response.bodyBytes)); | ||
if (kDebugMode) { | ||
print(json); | ||
} | ||
return (json['banners'] as List) | ||
.map((e) => BannerInfoEntity.fromJson(e)) | ||
.toList(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'package:amond/data/entity/banner_info_entity.dart'; | ||
|
||
class BannerInfo { | ||
String imageUrl; | ||
String contentUrl; | ||
|
||
BannerInfo({ | ||
required this.imageUrl, | ||
required this.contentUrl, | ||
}); | ||
|
||
factory BannerInfo.fromEntity(BannerInfoEntity entity) => | ||
_$BannerInfoFromEntity(entity); | ||
|
||
static BannerInfo _$BannerInfoFromEntity(BannerInfoEntity entity) => | ||
BannerInfo( | ||
imageUrl: entity.imageUrl, | ||
contentUrl: entity.contentUrl, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import 'package:amond/domain/models/banner_info.dart'; | ||
|
||
abstract class BannerRepository { | ||
Future<List<BannerInfo>> getBannerInfo(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import 'package:amond/domain/models/banner_info.dart'; | ||
import 'package:amond/domain/repositories/banner_repository.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class BannerViewModel with ChangeNotifier { | ||
final BannerRepository _repository; | ||
BannerViewModel(this._repository); | ||
|
||
bool _isLoading = true; | ||
bool get isLoading => _isLoading; | ||
|
||
List<BannerInfo> _infos = []; | ||
List<BannerInfo> get infos => _infos; | ||
|
||
Future<void> setBannerInfo() async { | ||
_infos = await _repository.getBannerInfo(); | ||
|
||
_isLoading = false; | ||
notifyListeners(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.