-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from covid19cuba/release/v0.5.0
Release v0.5.0
- Loading branch information
Showing
82 changed files
with
5,332 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Covid19 Cuba Data Mobile Application | ||
|
||
[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg?label=license)](https://opensource.org/licenses/MIT) [![Codemagic build status](https://api.codemagic.io/apps/5e8d6b3fda83690a52f55f67/5e8d6b3fda83690a52f55f66/status_badge.svg)](https://codemagic.io/apps/5e8d6b3fda83690a52f55f67/5e8d6b3fda83690a52f55f66/latest_build) [![Last commit](https://img.shields.io/github/last-commit/covid19cuba/covid19cuba-app.svg?style=flat)](https://github.com/covid19cuba/covid19cuba-app/commits) [![GitHub commit activity](https://img.shields.io/github/commit-activity/m/covid19cuba/covid19cuba-app)](https://github.com/covid19cuba/covid19cuba-app/commits) [![Github Stars](https://img.shields.io/github/stars/covid19cuba/covid19cuba-app?style=flat&logo=github)](https://github.com/covid19cuba/covid19cuba-app) [![Github Forks](https://img.shields.io/github/forks/covid19cuba/covid19cuba-app?style=flat&logo=github)](https://github.com/covid19cuba/covid19cuba-app) [![Github Watchers](https://img.shields.io/github/watchers/covid19cuba/covid19cuba-app?style=flat&logo=github)](https://github.com/covid19cuba/covid19cuba-app) [![GitHub contributors](https://img.shields.io/github/contributors/covid19cuba/covid19cuba-app)](https://github.com/covid19cuba/covid19cuba-app/graphs/contributors) | ||
[![License: CC0-1.0](https://img.shields.io/badge/License-CC0%201.0-brightgreen.svg?label=license)](http://creativecommons.org/publicdomain/zero/1.0/) [![Codemagic build status](https://api.codemagic.io/apps/5e8d6b3fda83690a52f55f67/5e8d6b3fda83690a52f55f66/status_badge.svg)](https://codemagic.io/apps/5e8d6b3fda83690a52f55f67/5e8d6b3fda83690a52f55f66/latest_build) [![Last commit](https://img.shields.io/github/last-commit/covid19cuba/covid19cuba-app.svg?style=flat)](https://github.com/covid19cuba/covid19cuba-app/commits) [![GitHub commit activity](https://img.shields.io/github/commit-activity/m/covid19cuba/covid19cuba-app)](https://github.com/covid19cuba/covid19cuba-app/commits) [![Github Stars](https://img.shields.io/github/stars/covid19cuba/covid19cuba-app?style=flat&logo=github)](https://github.com/covid19cuba/covid19cuba-app) [![Github Forks](https://img.shields.io/github/forks/covid19cuba/covid19cuba-app?style=flat&logo=github)](https://github.com/covid19cuba/covid19cuba-app) [![Github Watchers](https://img.shields.io/github/watchers/covid19cuba/covid19cuba-app?style=flat&logo=github)](https://github.com/covid19cuba/covid19cuba-app) [![GitHub contributors](https://img.shields.io/github/contributors/covid19cuba/covid19cuba-app)](https://github.com/covid19cuba/covid19cuba-app/graphs/contributors) | ||
|
||
Mobile application of Covid19 Cuba Data project implemented with Flutter. If you want to see examples of the application screens, you can access the following link: [Sample application image gallery](GALLERY.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## [1.0.5] - 2020.04.04 | ||
|
||
* BREAKING CHANGE: Range + (addition) will no longer mutate the object but return new instance of the object (range is const now) | ||
* Added == and hashcode to color saturation, brightness and hue. | ||
|
||
## [1.0.4] - 2019.08.16 | ||
|
||
* BREAKING CHANGE: Range + (addition) will no longer mutate the object but return new instance of the object (range is const now) | ||
* Added == and hashcode to color saturation, brightness and hue. | ||
|
||
## [1.0.3] - 2018.10.20 | ||
|
||
* Update example app | ||
* Set debug value default to false | ||
|
||
## [1.0.2] - 2018.10.20 | ||
|
||
* Update description | ||
|
||
## [1.0.1] - 2018.10.17 | ||
|
||
* Remove test dependency | ||
* Add description | ||
* Add randomColors function that returns lost of random colors | ||
* Change named parameter from ColorHue.custom() to required unnamed parameter | ||
* Change named parameter from ColorSaturation.custom() to required unnamed parameter | ||
* Change named parameter from ColorBrightness.custom() to required unnamed parameter | ||
|
||
## [1.0.0] - TODO: 2018.10.17 | ||
|
||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
The MIT License (MIT) | ||
|
||
Copyright (c) 2018 lukaknezic | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# fix for generate colors for charts_flutter | ||
# Random color generator | ||
|
||
[![pub package](https://img.shields.io/pub/v/random_color.svg)](https://pub.dartlang.org/packages/random_color) | ||
|
||
Pub link: https://pub.dartlang.org/packages/random_color | ||
|
||
This library will generate random colors that are visually pleasing and can be customized by passing custom hue, saturation and brightness range. | ||
This allows it to generate just specific color with slight differences. | ||
|
||
###### Blue colors: | ||
|
||
<img src="https://lh3.googleusercontent.com/gzYVhOKSoOzObIV36RjdEH3SOWHXA9_VekOgazq8DKVBqXD_kq9tmLxFpt3llqTkSwzfLAJl16MaREDrY7c9slEMrBUptHLDOVeUV1ttKOGJn3k1HuSjolPwv2TS1j7Llp3XA96PvnaM-6Wwpwgc5awOtn-64k5m_5xV9HhZMxbpCQscSagPJ0yLN5Bt-xrDBNhAYgJafH6jgxzYpRKV6leLmvaTHQ6MUJTjQXOs69ZNaaayQAgelrb8JFNp2LIVRz6Lv7MUhAOIvr2Km1-SWKW6_EolCL9CLLRbtAAs3LAegg0HnXYElg6AC14z-ohOXrck5U9MZFE1IP7BE-xKRLD7GImQz92jMLyXw12GFBQaopGZHW8bpba95ORyqMhJbEKE1NnRsRT_Zz9RNkNrkKpGyir8tiAhz-XyYE_usPAjPNi5E236vzed5qHxBklGSa9fTo4ub7t13dnrB8pe65PAZYfBCAcJt_K4ySNzdp2NMQgtqN4CUPPUOIeuxa7Lxt8wJMeM0oL0js9GV6_wABhiCzl-IoMg5ML7OnEXX-ZC61dKDnrFmIgesu_mnSRmwkBUFd72c5Tveb28-KLZK-DQ31_N4Z2aXCbM3RB9ChXG2wGDZKgx4XFt8-AwFTbMKOk1mWD13TELkyQzH9eorbljwQQVdG--qDSlL3KP2khXNL0DIBuhGl1l=w720-h717-no" width=300> | ||
|
||
###### Red colors: | ||
|
||
<img src="https://lh3.googleusercontent.com/HOex8jpzv5eDKCX04nerST5HmwAGkMLe9D_FnhnxfwUDlTaboLNVmP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3eh1cGO=w720-h716-no" width=300> | ||
|
||
###### High saturation: | ||
|
||
<img src="https://lh3.googleusercontent.com/ve62lifZ4nltAV1mXpAxl6aCn94JOA_1EdBUx5gN7ktb0LqL03M2eu_aFD4HFhzEI5ti2GGFYiwo5f_GybgX_ABGQDbF8Qefc5YlY_fOkeLBj-dOyI2xAkTmd0tKmjkayQU0Y1yhPHMue_HqdjQ_voCyH7hjRJLzUvQUzA_tl_KDPmL3Rzt8NOzF73wH9vO_a1hCip0aniUbEZyA4600jR3Xak8do0UsXxD2hmL7BgKpmatV5MMQL0MajnqcOZhLmBW8v9MioYjvXo_YV5T7olJnWM6rDXUTwHR4hPYPfbOgGFuxKeTcO3q3_yK5ez4bqzhjkoDNAEgexfMppKbB2Pi4zpD4LwADLyVhw6MSvcYuHc3SXxCuLS2yMHIs2z75K8m5dcK3iFI0pYm943N2-8JwmhYgGYXKBQ0bu6bcZ9mRURULjDrRFYSQLSoEJ-zN9NLoQXxTfSWWNAfN_1JKvbfys1XNG2EFjH9X5x53fs3ftqbxBnK7FylF9B8bZ9q0hrtLRkiOHbJKZi1HHpXiJYJDUgh5ENjnV4-ZOHtb-jcwhqw04QHROSNWzHYlKPQlWcbtTFyKoD5i3z0_HnYB4Y7VRQpEY6ZBjTwhQm61swCaW7DTAjLczfEkDs0xPuXuw986Mw98mP0DWQvNphIKaerKjFLSftOqhQZ3hkMW5GxjyIcT7A5yBqy5=w720-h715-no" width=300> | ||
|
||
###### Light colors: | ||
|
||
<img src="https://lh3.googleusercontent.com/DT8OZFF_Y22biSQ8LIFQKb2Oh7dl2OkqG1QE-VjDOEjJb6n1f5yOaCTuLWTu0SDK5zHekCHeigMdhEYuftYvME2hYpNRTnOn2OX_RYAl9P9jB_mF_JOIHtUS-tFxyvlsIzrA1RPOY0Sl2Jf3ruVoaKqMtHAOc-AKqbg9gJQTRt4dZZSEEY3roC_Lp9QHcEFlGF6zKTkCCNfp3N-MdKbaLFIJRH2jitd4FktQA6Syh66erFQwjMm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0SogO41cLbbC4_VpgkMivRcboc0T77A17sYAEsb5BssVXgENVO1O4aNb0HdpicKGrCTnygtim4AKmFCd2k-wYlSgWuswcZFP4jfIonwv-kGAsCXNF3gZ15q9MbtbSuoveEyoTYkLdXEws0QO=w720-h714-no" width=300> | ||
|
||
### Usage | ||
|
||
##### Getting random color: | ||
random color function can be called with parameters colorHue, colorSaturation and colorBrightness | ||
allowing for customization of colors the generator will pass. | ||
```dart | ||
import 'package:random_color/random_color.dart'; | ||
RandomColor _randomColor = RandomColor(); | ||
Color _color = _randomColor.randomColor(); | ||
``` | ||
|
||
##### Getting color name: | ||
You can get color name from hex string (without # and alpha hex values) or from Color object | ||
```dart | ||
Color _color = Color('FF0000'.toStringRadix(16)); | ||
MyColor _myColor = getColorNameFromColor(_color); | ||
// Prints: 'Red' | ||
print(_myColor.getName); | ||
``` | ||
|
||
##### Get just red colors: | ||
Random color can generate just specific color type, as long hue, saturation and brightness are not | ||
too limiting this will still give rich result | ||
```dart | ||
import 'package:random_color/random_color.dart'; | ||
RandomColor _randomColor = RandomColor(); | ||
Color _color = _randomColor.randomColor(colorHue: ColorHue.red); | ||
``` | ||
|
||
##### Get just red and blue colors: | ||
You can combine multiple hue ranges to choose from | ||
```dart | ||
import 'package:random_color/random_color.dart'; | ||
RandomColor _randomColor = RandomColor(); | ||
Color _color = _randomColor.randomColor( | ||
colorHue: ColorHue.multiple([ColorHue.red, ColorHue.blue]) | ||
); | ||
``` | ||
|
||
##### Get highly saturated colors: | ||
```dart | ||
import 'package:random_color/random_color.dart'; | ||
RandomColor _randomColor = RandomColor(); | ||
Color _color = _randomColor.randomColor( | ||
colorSaturation: ColorSaturation.highSaturation | ||
); | ||
``` | ||
|
||
##### Get light colors: | ||
```dart | ||
import 'package:random_color/random_color.dart'; | ||
RandomColor _randomColor = RandomColor(); | ||
Color _color = _randomColor.randomColor( | ||
colorBrightness: ColorBrightness.light | ||
); | ||
``` | ||
|
||
### Tests | ||
|
||
If you want to run the tests for this project under Flutter Dart | ||
|
||
``` | ||
flutter pub pub run test | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
library random_color; | ||
|
||
import 'dart:math'; | ||
|
||
import 'package:flutter/material.dart'; | ||
// ignore: implementation_imports | ||
import 'package:charts_common/src/common/color.dart' as ChartColor; | ||
|
||
part 'random_color/color_info.dart'; | ||
part 'random_color/name_that_color.dart'; | ||
part 'random_color/random_color.dart'; | ||
|
||
/// A library to get and parse data received from NTP services |
Oops, something went wrong.