Skip to content

This source code is to be used as a starting point to enter the FlutterClock challenge. It contains necessary code to display the time in a way that can be easily modified to create your awesome designs.

Notifications You must be signed in to change notification settings

sayed3li97/FlutterClock-Challenge-BH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Logo GDG Manama Logo

Flutter Clock Challenge

This source code is to be used as a starting point to enter the FlutterClock challenge. It contains the necessary code to display the time in a way that can be easily modified to create your incredible designs.

Demo

GDG Manama Logo

Getting Started

  1. Fork repository or clone and download the repository

  2. Install Latest Flutter version

  3. Install Android Studio / IntelliJ / VSCode

  4. Run the command flutter pub get

  5. Run the command flutter run

  6. If you don't have flutter installed, you can use DartPad However, you will not be able to use external packages

Addtional information

  1. To add a custom font, you can use Google Font Package

  2. To add animation to the time text, you can follow this tutorial

<iframe width="648" height="233" src="https://www.youtube.com/embed/FEQpKnhceKM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  1. To format the Date in different forms, replace the string in the code below
DateFormat("hh").format(dateTime);

Replace "hh" with the desired format from the skeleton column in the table below

ICU Name Skeleton
DAY d
ABBR_WEEKDAY E
WEEKDAY EEEE
ABBR_STANDALONE_MONTH LLL
STANDALONE_MONTH LLLL
NUM_MONTH M
NUM_MONTH_DAY Md
NUM_MONTH_WEEKDAY_DAY MEd
ABBR_MONTH MMM
ABBR_MONTH_DAY MMMd
ABBR_MONTH_WEEKDAY_DAY MMMEd
MONTH MMMM
MONTH_DAY MMMMd
MONTH_WEEKDAY_DAY MMMMEEEEd
ABBR_QUARTER QQQ
QUARTER QQQQ
YEAR y
YEAR_NUM_MONTH yM
YEAR_NUM_MONTH_DAY yMd
YEAR_NUM_MONTH_WEEKDAY_DAY yMEd
YEAR_ABBR_MONTH yMMM
YEAR_ABBR_MONTH_DAY yMMMd
YEAR_ABBR_MONTH_WEEKDAY_DAY yMMMEd
YEAR_MONTH yMMMM
YEAR_MONTH_DAY yMMMMd
YEAR_MONTH_WEEKDAY_DAY yMMMMEEEEd
YEAR_ABBR_QUARTER yQQQ
YEAR_QUARTER yQQQQ
HOUR24 H
HOUR24_MINUTE Hm
HOUR24_MINUTE_SECOND Hms
HOUR j
HOUR_MINUTE jm
HOUR_MINUTE_SECOND jms
HOUR_MINUTE_GENERIC_TZ jmv
HOUR_MINUTE_TZ jmz
HOUR_GENERIC_TZ jv
HOUR_TZ jz
MINUTE m
MINUTE_SECOND ms
SECOND s

For more information about DateFormat

About

This source code is to be used as a starting point to enter the FlutterClock challenge. It contains necessary code to display the time in a way that can be easily modified to create your awesome designs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published