Skip to content

programophile/World-Time-App-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

World Time App

A simple Flutter app that shows current time by city and lets you switch locations.

Features

  • Load default city time on startup.
  • Choose from multiple world locations.
  • Show city name, local time, and day/night background.
  • Correct timezone handling using API UTC time + offset .

Tech Stack

  • Flutter
  • Dart
  • http package for API calls
  • intl package for time formatting
  • flutter_spinkit for loading animation

API

This app fetches timezone data from:

https://time.now/developer/api/timezone/{timezone}

Example timezone values:

  • Europe/Berlin
  • Europe/Athens
  • Asia/Jakarta

Project Structure

lib/
	main.dart
	pages/
		loading.dart
		home.dart
		choose_location.dart
	services/
		word_time.dart

Run Locally

  1. Install Flutter SDK.
  2. From project root, install packages:
flutter pub get
  1. Run the app:
flutter run

Notes

  • Location switching works by returning selected city data from choose_location.dart to home.dart.
  • Time is calculated in word_time.dart from utc_datetime with raw_offset + dst_offset to ensure each location shows the correct local wall time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors