-
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.
Merge pull request #45 from SWM-M3PRO/feature/M3-203-individualPixelD…
…esign M3-203 픽셀 정보창 개인전 디자인
- Loading branch information
Showing
69 changed files
with
868 additions
and
496 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.
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.
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.
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.
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.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
flutter_icons: | ||
ios: true | ||
android: true | ||
image_path: "assets/images/app_icon.png" | ||
image_path: "assets/images/ground_flip_app_icon.png" | ||
remove_alpha_ios: true |
Binary file modified
BIN
+1.09 KB
(110%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+252 Bytes
(190%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+449 Bytes
(170%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+325 Bytes
(130%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+360 Bytes
(180%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+467 Bytes
(150%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+711 Bytes
(150%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+449 Bytes
(170%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+646 Bytes
(150%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+747 Bytes
(130%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+381 Bytes
(150%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+696 Bytes
(140%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+231 Bytes
(120%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+21 Bytes
(100%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+747 Bytes
(130%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+1.22 KB
(140%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+610 Bytes
(150%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+885 Bytes
(140%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+529 Bytes
(140%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+1.19 KB
(150%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+1.12 KB
(140%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+2.1 KB
(180%)
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
Oops, something went wrong.
Binary file modified
BIN
+5.14 KB
(210%)
ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+11.4 KB
(280%)
ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
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
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
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,95 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:get/get.dart'; | ||
|
||
import '../enums/pixel_mode.dart'; | ||
import '../models/individual_history_pixel_info.dart'; | ||
import '../models/individual_mode_pixel_info.dart'; | ||
import '../service/pixel_service.dart'; | ||
import '../widgets/map/bottom_sheet/individual_history_list.dart'; | ||
import '../widgets/map/bottom_sheet/pixel_info_header.dart'; | ||
import '../widgets/map/bottom_sheet/step_stats.dart'; | ||
import '../widgets/map/bottom_sheet/visited_user_list.dart'; | ||
|
||
class BottomSheetController extends GetxController { | ||
final PixelService pixelService = PixelService(); | ||
final DraggableScrollableController draggableController = | ||
DraggableScrollableController(); | ||
Widget currentBody = StepStatsBody(); | ||
Widget currentHeader = StepStats(); | ||
RxInt mode = 0.obs; | ||
RxBool changeVar = true.obs; | ||
double size = 1.1; | ||
|
||
void showIndividualHistoryPixelInfo(IndividualHistoryPixelInfo pixelInfo) { | ||
mode.value = 1; | ||
changeVar.value = changeVar.value ? false : true; | ||
draggableController.animateTo( | ||
0.6, | ||
duration: Duration(milliseconds: 500), | ||
curve: Curves.easeInOut, | ||
); | ||
currentHeader = PixelInfoHeader( | ||
address: pixelInfo.address, | ||
visitCount: pixelInfo.visitCount!, | ||
mode: PixelMode.individualHistory, | ||
); | ||
currentBody = IndividualHistoryList( | ||
visitList: pixelInfo.visitList ?? [], | ||
); | ||
mode.value = 1; | ||
} | ||
|
||
void showIndividualModePixelInfo(IndividualModePixelInfo pixelInfo) { | ||
mode.value = 2; | ||
changeVar.value = changeVar.value ? false : true; | ||
draggableController.animateTo( | ||
0.6, | ||
duration: Duration(milliseconds: 300), | ||
curve: Curves.easeInOut, | ||
); | ||
currentHeader = PixelInfoHeader( | ||
address: pixelInfo.address, | ||
visitCount: pixelInfo.visitCount!, | ||
mode: PixelMode.individualMode, | ||
); | ||
currentBody = VisitedUserList( | ||
pixelOwnerUser: pixelInfo.pixelOwnerUser!, | ||
visitList: pixelInfo.visitList ?? [], | ||
); | ||
mode.value = 2; | ||
} | ||
|
||
minimize() { | ||
currentHeader = StepStats(); | ||
currentBody = StepStatsBody(); | ||
mode.value = 0; | ||
draggableController.animateTo( | ||
0.1, | ||
duration: Duration(milliseconds: 500), | ||
curve: Curves.easeInOut, | ||
); | ||
} | ||
|
||
void changeStepStatIfMinimized() { | ||
if (draggableController.size <= 0.111 && size > draggableController.size) { | ||
currentHeader = StepStats(); | ||
currentBody = StepStatsBody(); | ||
mode.value = 0; | ||
} | ||
size = draggableController.size; | ||
} | ||
|
||
getBody() { | ||
if (mode.value == 0 && changeVar.value) { | ||
// changeVar.value = changeVar.value ? false : true; | ||
} | ||
return currentBody; | ||
} | ||
|
||
getHeader() { | ||
if (mode.value == 0 && changeVar.value) { | ||
// changeVar.value = changeVar.value ? false : true; | ||
} | ||
return currentHeader; | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,15 +1,26 @@ | ||
enum PixelMode { | ||
individualMode(koreanName : '개인전'), | ||
individualHistory(koreanName : '개인 기록'), | ||
groupMode(koreanName : '그룹전'); | ||
individualMode(koreanName: '개인전'), | ||
individualHistory(koreanName: '개인 기록'), | ||
groupMode(koreanName: '그룹전'); | ||
|
||
const PixelMode({required this.koreanName}); | ||
|
||
final String koreanName; | ||
|
||
static PixelMode fromKrName(String krName) { | ||
return PixelMode.values.firstWhere((mode) => mode.koreanName == krName, | ||
orElse: () => throw ArgumentError('No enum value with krName $krName'), | ||
return PixelMode.values.firstWhere( | ||
(mode) => mode.koreanName == krName, | ||
orElse: () => throw ArgumentError('No enum value with krName $krName'), | ||
); | ||
} | ||
|
||
static PixelMode fromInt(int number) { | ||
if (number == 0) { | ||
return PixelMode.individualHistory; | ||
} else if (number == 1) { | ||
return PixelMode.individualMode; | ||
} else { | ||
return PixelMode.groupMode; | ||
} | ||
} | ||
} |
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.