Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

A Flutter package to generate a color scheme based on a date. The color scheme includes a color for the calendar day and a color for the year.

License

Notifications You must be signed in to change notification settings

litlifesoftware/date_colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DateColors Banner

DateColors

DateColors is a Flutter package to generate a color scheme based on a date. The color scheme includes a color for the calendar day and a color for the year.

Consider taking a look into the manual for specifications and color codes.

Visit our website for more details.

Created and maintained by LitLifeSoftware.

Features

  • Generate a color based on the current year.
  • Generate a color based on the season of the current year.
  • Generate a combined color based on the current year and the season of the current year.
  • Generate an unique color of the current year.
  • Generate an unique color based on the date.
Screenshot 1 Screenshot 2 Screenshot 3
1 2 3

Getting started

For help getting started with Flutter, view Flutter's online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Usage

To use DateColors in your Flutter app make sure to import it by including the code line import 'package:date_colors/date_colors.dart'; in the header part of your .dart file.

Create a DateColorScheme instance by providing a DateTime object.

DateColorScheme scheme = DateColorScheme(DateTime.now());

Access the generated colors by calling the scheme's properties.

Color color = scheme.colorOfTheSeason;

The /example folder contains an example app demonstrating how DateColors could be implemented.

Dependencies

DateColors uses the following Dart dependencies in order to implement certain features and functionality:

  • crypto - License (Creates a hash required to generate unique colors)

Credits

DateColors is made possible thanks to the Flutter Project.

License

The source code of this repository is distributed under the BSD 3-Clause license as specified in the LICENSE file.

About

A Flutter package to generate a color scheme based on a date. The color scheme includes a color for the calendar day and a color for the year.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published