-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: modalの角丸をMaterial3に適合 * fix: WebSocket接続中の判定ミス * add: 地震履歴一覧・詳細の大規模噴火の扱い修正
- Loading branch information
Showing
6 changed files
with
137 additions
and
108 deletions.
There are no files selected for viewing
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,19 @@ | ||
import 'package:eqapi_types/eqapi_types.dart'; | ||
|
||
extension EarthquakeV1Ex on EarthquakeV1 { | ||
bool get isVolcano => | ||
(text?.contains('大規模な噴火が発生しました') ?? false) && | ||
(text?.contains('実際には、規模の大きな地震は発生していない点に留意') ?? false); | ||
|
||
String? get volcanoName { | ||
if (!isVolcano) { | ||
return null; | ||
} | ||
|
||
final splitted = text?.split('分頃(日本時間)に') ?? []; | ||
if (splitted.length != 2) { | ||
return null; | ||
} | ||
return splitted[1].split('で大規模な噴火が発生しました')[0]; | ||
} | ||
} |
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.