Skip to content

Commit

Permalink
release 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
YumNumm committed Jan 1, 2024
1 parent 5bab833 commit 07730e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ class PrefectureIntensityWidget extends HookConsumerWidget {
subtitle: Text(
kv.value.map((e) => e.prefecture.name).join(', '),
),
onTap: kv.value.isEmpty
? null
: () => _PrefectureModalBottomSheet.show(
onTap: hasChildren
? () => _PrefectureModalBottomSheet.show(
context: context,
intensity: kv.key,
prefectures: kv.value,
),
)
: null,
trailing:
hasChildren ? null : const Icon(Icons.chevron_right),
hasChildren ? const Icon(Icons.chevron_right) : null,
);
}(),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ class _EarthquakeHypoInfoWidget extends ConsumerWidget {
color: textTheme.titleMedium!.color!.withOpacity(0.8),
),
),
const SizedBox(width: 4),
Text(
item.telegrams.any((element) => element.type == TelegramType.vxse53)
? '不明'
Expand Down Expand Up @@ -498,7 +499,7 @@ class _EarthquakeCommentWidget extends StatelessWidget {
return BorderedContainer(
padding: const EdgeInsets.all(8),
elevation: 1,
child: MarkdownBody(
child: Markdown(
data: switch ((comment.forecast?.text, comment.free)) {
(final String text, final String free) => '$text\n\n$free',
(final String text, _) => text,
Expand All @@ -508,6 +509,9 @@ class _EarthquakeCommentWidget extends StatelessWidget {
.toHalfWidth,
selectable: true,
softLineBreak: true,
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
padding: EdgeInsets.zero,
onTapLink: (text, href, title) async {
final uri = Uri.tryParse(href.toString());
if (uri == null) {
Expand Down

0 comments on commit 07730e8

Please sign in to comment.