Skip to content

Commit

Permalink
震源・震度アイコン描画バグの修正 (#579)
Browse files Browse the repository at this point in the history
* update: flutter 3.20.0-1.1.pre-beta

* fix: 地震履歴詳細画面

* fix: kmoni, home

* fix: EEW表示領域調整
  • Loading branch information
YumNumm authored Feb 21, 2024
1 parent f48bee0 commit aea17c8
Show file tree
Hide file tree
Showing 47 changed files with 1,429 additions and 410 deletions.
4 changes: 0 additions & 4 deletions .fvm/fvm_config.json

This file was deleted.

3 changes: 3 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutter": "3.20.0-1.1.pre@beta"
}
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.fvm/flutter_sdk
.crashlytics

.env
Expand Down Expand Up @@ -129,7 +128,6 @@ app.*.symbols
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock


# Web related

# Obfuscation related
Expand Down Expand Up @@ -168,3 +166,6 @@ ios/*.p8

*.pem
*_old

# FVM Version Cache
.fvm/
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dart.flutterSdkPath": ".fvm/flutter_sdk",
"dart.flutterSdkPath": ".fvm/versions/3.20.0-1.1.pre@beta",
"search.exclude": {
"**/.fvm": true,
"*.geojson": true
Expand All @@ -14,4 +14,4 @@
"*.dart": "${capture}.g.dart, ${capture}.freezed.dart, ${capture}.viewmodel.dart"
},
"cmake.sourceDirectory": "/Users/r_onoue/dev/EQMonitor/windows/flutter"
}
}
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.8.20'
ext.kotlin_version = '1.9.22'
repositories {
google()
mavenCentral()
Expand Down
12 changes: 6 additions & 6 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1127;
CURRENT_PROJECT_VERSION = 1128;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = CPL7H8SHVM;
ENABLE_BITCODE = NO;
Expand Down Expand Up @@ -552,7 +552,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1127;
CURRENT_PROJECT_VERSION = 1128;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = CPL7H8SHVM;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
Expand Down Expand Up @@ -594,7 +594,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1127;
CURRENT_PROJECT_VERSION = 1128;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = CPL7H8SHVM;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
Expand Down Expand Up @@ -635,7 +635,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1127;
CURRENT_PROJECT_VERSION = 1128;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = CPL7H8SHVM;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
Expand Down Expand Up @@ -779,7 +779,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1127;
CURRENT_PROJECT_VERSION = 1128;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = CPL7H8SHVM;
ENABLE_BITCODE = NO;
Expand Down Expand Up @@ -811,7 +811,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1127;
CURRENT_PROJECT_VERSION = 1128;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = CPL7H8SHVM;
ENABLE_BITCODE = NO;
Expand Down
2 changes: 1 addition & 1 deletion ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1127</string>
<string>1128</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
Expand Down
3 changes: 1 addition & 2 deletions lib/core/component/sheet/sheet_floating_action_buttons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ class SheetFloatingActionButtons extends HookWidget {
final SheetController controller;
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final size = MediaQuery.sizeOf(context);
final padding = MediaQuery.paddingOf(context);
// safearea取得
final height = size.height -
(padding.top +
// SafeAreaのtop部分, AppBarの高さ
(hasAppBar ? AppBar().preferredSize.height ?? 0 : 0));
(hasAppBar ? AppBar().preferredSize.height : 0));
return AnimatedBuilder(
animation: controller.animation,
builder: (BuildContext context, Widget? child) {
Expand Down
2 changes: 1 addition & 1 deletion lib/core/provider/user_id/user_id_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class UserId extends _$UserId {
if (previousUserId != null) {
return previousUserId;
}
final newUserId = Uuid().v8();
final newUserId = const Uuid().v8();
save(newUserId);
return newUserId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -718,10 +718,10 @@ class _StationAction extends _Action {
'interpolate',
['linear'],
['zoom'],
6,
1,
3,
0.3,
20,
2,
1,
],
iconOpacity: [
'step',
Expand Down Expand Up @@ -752,9 +752,9 @@ class _StationAction extends _Action {
['linear'],
['zoom'],
3,
0.3,
20,
2,
0.1,
7,
0.4,
],
textAllowOverlap: true,
iconAllowOverlap: true,
Expand All @@ -766,6 +766,7 @@ class _StationAction extends _Action {
intensity.type,
],
sourceLayer: 'station-intensity',
belowLayerId: 'hypocenter',
);
}

Expand Down Expand Up @@ -848,7 +849,7 @@ class _HypocenterAction extends _Action {
3,
0.3,
20,
5,
1,
],
iconOpacity: [
'interpolate',
Expand All @@ -857,7 +858,7 @@ class _HypocenterAction extends _Action {
6,
1.0,
10,
0.5,
0.8,
],
iconAllowOverlap: true,
),
Expand Down Expand Up @@ -1046,6 +1047,7 @@ class _StationIntensityLpgmAction extends _Action {
20,
2,
],
iconOptional: 0.8,
textAllowOverlap: true,
iconAllowOverlap: true,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,46 +111,43 @@ class EarthquakeHistoryDetailsPage extends HookConsumerWidget {
IgnorePointer(
child: AnimatedSwitcher(
duration: const Duration(milliseconds: 250),
child: Visibility(
visible: !config.showIntensityIcon,
child: BorderedContainer(
key: ValueKey(
(config, maxIntensity, maxLgIntensity),
),
margin: const EdgeInsets.all(4),
padding: const EdgeInsets.all(4),
borderRadius: BorderRadius.circular((25 / 5) + 5),
child: Wrap(
spacing: 8,
runSpacing: 8,
children: [
if (config.showingLpgmIntensity &&
maxLgIntensity != null)
for (final intensity in [
...JmaLgIntensity.values,
].where(
(e) =>
e != JmaLgIntensity.zero &&
e <= maxLgIntensity,
))
JmaLgIntensityIcon(
type: IntensityIconType.filled,
intensity: intensity,
size: 25,
)
else
for (final intensity in [
...JmaIntensity.values,
].where(
(e) => e <= maxIntensity!,
))
JmaIntensityIcon(
type: IntensityIconType.filled,
intensity: intensity,
size: 25,
),
],
),
child: BorderedContainer(
key: ValueKey(
(config, maxIntensity, maxLgIntensity),
),
margin: const EdgeInsets.all(4),
padding: const EdgeInsets.all(4),
borderRadius: BorderRadius.circular((25 / 5) + 5),
child: Wrap(
spacing: 8,
runSpacing: 8,
children: [
if (config.showingLpgmIntensity &&
maxLgIntensity != null)
for (final intensity in [
...JmaLgIntensity.values,
].where(
(e) =>
e != JmaLgIntensity.zero &&
e <= maxLgIntensity,
))
JmaLgIntensityIcon(
type: IntensityIconType.filled,
intensity: intensity,
size: 25,
)
else
for (final intensity in [
...JmaIntensity.values,
].where(
(e) => e <= maxIntensity!,
))
JmaIntensityIcon(
type: IntensityIconType.filled,
intensity: intensity,
size: 25,
),
],
),
),
),
Expand Down
Loading

0 comments on commit aea17c8

Please sign in to comment.