Skip to content

Commit

Permalink
Auto format by GitHub Actions (#258)
Browse files Browse the repository at this point in the history
Auto format

Co-authored-by: YumNumm <YumNumm@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and YumNumm authored May 22, 2023
1 parent 7284784 commit e5506d3
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,69 +12,69 @@ class IntensityColorModel with _$IntensityColorModel {
const factory IntensityColorModel({
/// 震度不明
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityUnknownFront,
required Color intensityUnknownFront,
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityUnknownBack,
required Color intensityUnknownBack,

/// 震度0
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityZeroFront,
required Color intensityZeroFront,
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityZeroBack,
required Color intensityZeroBack,

/// 震度1
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityOneFront,
required Color intensityOneFront,
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityOneBack,
required Color intensityOneBack,

/// 震度2
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityTwoFront,
required Color intensityTwoFront,
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityTwoBack,
required Color intensityTwoBack,

/// 震度3
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityThreeFront,
required Color intensityThreeFront,
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityThreeBack,
required Color intensityThreeBack,

/// 震度4
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityFourFront,
required Color intensityFourFront,
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityFourBack,
required Color intensityFourBack,

/// 震度5弱
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityFiveLowerFront,
required Color intensityFiveLowerFront,
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityFiveLowerBack,
required Color intensityFiveLowerBack,

/// 震度5強
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityFiveUpperFront,
required Color intensityFiveUpperFront,
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensityFiveUpperBack,
required Color intensityFiveUpperBack,

/// 震度6弱
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensitySixLowerFront,
required Color intensitySixLowerFront,
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensitySixLowerBack,
required Color intensitySixLowerBack,

/// 震度6強
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensitySixUpperFront,
required Color intensitySixUpperFront,
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensitySixUpperBack,
required Color intensitySixUpperBack,

/// 震度7
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensitySevenFront,
required Color intensitySevenFront,
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
required Color intensitySevenBack,
required Color intensitySevenBack,
}) = _IntensityColorModel;

factory IntensityColorModel.fromJson(Map<String, dynamic> json) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TelegramHistoryV3 with _$TelegramHistoryV3 {
fromJson: _telegramHistoryV3DataFromJson,
toJson: _telegramHistoryV3DataToJson,
)
required Map<String, List<TelegramV3>>? results,
required Map<String, List<TelegramV3>>? results,
required bool success,
required D1DbExecutionResult meta,
}) = _TelegramHistoryV3;
Expand Down
1 change: 0 additions & 1 deletion lib/feature/home/component/map/base_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';


/// 各種マップのベースマップ
/// baseMapViewModelProviderからMapStateを取得すること
class BaseMapWidget extends HookConsumerWidget {
Expand Down
4 changes: 2 additions & 2 deletions lib/feature/home/component/map/model/map_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ part 'map_state.g.dart';
class MapState with _$MapState {
const factory MapState({
@JsonKey(fromJson: _offsetFromJson, toJson: _offsetToJson)
required Offset offset,
required Offset offset,
required double zoomLevel,
@JsonKey(
fromJson: _globalPointFromJson,
toJson: _globalPointToJson,
)
required GlobalPoint? focalPoint,
required GlobalPoint? focalPoint,
}) = _MapState;

factory MapState.fromJson(Map<String, dynamic> json) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ class BaseMapViewModel extends _$BaseMapViewModel {
Animation<double>? moveAnimation = null;
Animation<double>? scaleAnimation = null;



void handleScaleStart(ScaleStartDetails details) {
if (details.pointerCount == 1) {
return;
Expand Down

0 comments on commit e5506d3

Please sign in to comment.