Skip to content

Commit

Permalink
fix: tsunami information layout (#282)
Browse files Browse the repository at this point in the history
* Update tsunami.dart

* Update tsunami.dart

---------

Co-authored-by: Kamiya <[email protected]>
  • Loading branch information
lowrt and kamiya10 authored Sep 19, 2024
1 parent 803e752 commit e5afc04
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions lib/app/page/map/tsunami/tsunami.dart
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
style: TextStyle(
fontSize: 28,
fontWeight: FontWeight.bold,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand All @@ -400,7 +399,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
letterSpacing: 1,
color: context.colors.onSurface.withOpacity(0.8),
),
),
Expand All @@ -411,7 +409,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
: "${getTime()} 更新",
style: TextStyle(
fontSize: 14,
letterSpacing: 1,
color: context.colors.onSurfaceVariant,
),
),
Expand Down Expand Up @@ -478,7 +475,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
"${tsunami?.content}",
style: TextStyle(
fontSize: 18,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand All @@ -494,7 +490,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand All @@ -512,7 +507,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand All @@ -530,7 +524,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand All @@ -544,16 +537,19 @@ class _TsunamiMapState extends State<TsunamiMap> {
context.i18n.occurrence_time,
style: TextStyle(
fontSize: 18,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
],
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
convertTimestamp(tsunami!.eq.time),
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand All @@ -569,19 +565,22 @@ class _TsunamiMapState extends State<TsunamiMap> {
context.i18n.report_location,
style: TextStyle(
fontSize: 18,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
],
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
tsunami!.eq.loc,
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand All @@ -590,7 +589,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand All @@ -611,7 +609,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
context.i18n.scale,
style: TextStyle(
fontSize: 18,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand All @@ -620,7 +617,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand All @@ -638,7 +634,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
context.i18n.depth,
style: TextStyle(
fontSize: 18,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand All @@ -647,7 +642,6 @@ class _TsunamiMapState extends State<TsunamiMap> {
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
letterSpacing: 2,
color: context.colors.onSurface,
),
),
Expand Down

0 comments on commit e5afc04

Please sign in to comment.