Skip to content

The clock is a modern analogue and digital clock, which was designed for a 900x600 smart clock device.

Notifications You must be signed in to change notification settings

NathanGarces/flutter_modern_clock

Repository files navigation

flutter_modern_clock

The clock is a modern analogue and digital clock, which was designed for a 900x600 smart clock.

The clock was designed using Figma and implemented in Flutter.

A look into the code

The project follows an Mvvm architecture, which was implemented using the stacked package. There is a single main_view and main_viewmodel which shows the clock widget and the digital clock background. The clock and all of its components were created using CustomPaint and every element of it can be customized, from size to color. I made the clock components extremely modular to make this process easier.

The clock components

There are 4 layers to the clock:

  • clock.dart, which is the clock itself and all of the components put together.
  • clock_centre_circle.dart, which is the centre circle of the clock and a shadow underneath.
  • clock_face.dart, which is the main "ring" or clock face.
  • clock_hands.dart, which is the 3 hands of the clock and contains all of the main positional calculations.

DISCLAIMER

The clock has been developed and tested for use in a chrome browser. There may be errors on other devices.

About

The clock is a modern analogue and digital clock, which was designed for a 900x600 smart clock device.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published