iTranslated by AI
Earthquake Information App Built with Flutter
Introduction
In this article, I would like to talk about an earthquake information app I created using Flutter and Dart. As a first step, I will write about why I, as a beginner, took on this challenge. Since this is my first post, I might not be able to write it very well, but I would be happy if you could read it to the end.
It is under the MIT license.
App Overview
This app pulls earthquake information from the Japan Weather Association's public API. Using that, users can check the date and time of occurrence, location, magnitude, and more in real-time.
Technical Details
I developed this app using Flutter and Dart. Flutter is a UI framework developed by Google that allows you to create apps that run on various platforms. I had Phind and Copilot implement most of it.
The content of the app is as follows:
-
Fetching Earthquake Information: Fetches JSON data from the Japan Weather Association's API and converts it into an
Earthquakeclass using the magic of Dart. -
Handling Dates: The earthquake date and time come in ISO format, but I convert this into a format that is easy for users to understand. For this, I used Dart's
DateFormatclass. -
UI Appearance: The fetched earthquake information is displayed as a list using Flutter's
ListView.builder. Each list item shows the date and time, location, and magnitude of the earthquake.
Motivation for Creating the App
To be honest, the reason I made this app is that on January 1, 2024, there was a large earthquake centered in Ishikawa Prefecture, and it made me scared right at the start of the new year. At that time, I thought, "I want to be able to find out earthquake information more easily," so I decided to try making this app.
I believe information is vital during a disaster. Getting accurate information quickly leads to safety, and I think it can be helpful for everyone.
Finally
I created this app as a place for beginners to challenge themselves and as a tool to provide useful information to people interested in earthquakes.
apk is here.
If there are people who would like to develop it with me, we might be able to make it a more attractive and user-friendly app (or website). If you are interested, I have also made the GitHub repository for this app public! Please check out the code on GitHub!
Also, this app is published on the website 地震.net.
If you want to know more details about the website information, please be sure to visit it as well.
If you are interested in development, please feel free to contact admin@linkall.uk!
Discussion