Skip to content

Commit 22fe12e

Browse files
authored
feat: Pinterest color palette #66
1 parent b71533a commit 22fe12e

File tree

9 files changed

+53
-7
lines changed

9 files changed

+53
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Added
9+
- Pinterest color palette - [53](https://github.com/dartoos-dev/flutter_brand_palettes/issues/53).
810

911
## [0.3.0] - 2021-05-22
1012
### Changed - BREAKING CHANGES

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## flutter_brand_palettes
2+
13
<img
24
src="https://user-images.githubusercontent.com/24878574/119202536-61caa380-ba67-11eb-8f29-1bfa92f28143.png"
35
alt="EO-Color logo" width="207" height="96"/>
@@ -50,7 +52,9 @@ class FacebookIsh extends StatelessWidget {
5052
To run the showcase application:
5153

5254
```shell
53-
cd example/
55+
56+
git clone https://github.com/dartoos-dev/flutter_brand_palettes.git
57+
cd flutter_brand_palettes/example/
5458
flutter run -d chrome
5559

5660
```
@@ -62,7 +66,8 @@ This should start the showcase application in Chrome browser.
6266
### Do you need any brand that has not yet been implemented?
6367

6468
Just open an
65-
[issue](https://github.com/dartoos-dev/flutter_brand_palettes/issues), enter the brand name and color reference link.
69+
[issue](https://github.com/dartoos-dev/flutter_brand_palettes/issues), enter the
70+
brand name and color reference link.
6671

6772
### Brand Palettes Classes (A-Z)
6873

@@ -122,6 +127,8 @@ Just open an
122127
- black, grey, red, white.
123128
- **PayPal**
124129
- black, pal blue, pay blue, white.
130+
- **Pinterest**
131+
- red, white.
125132
- **Reddit**
126133
- black, orange, white.
127134
- **Slack**

example/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ packages:
4949
name: eo_color
5050
url: "https://pub.dartlang.org"
5151
source: hosted
52-
version: "0.0.9"
52+
version: "0.0.11"
5353
fake_async:
5454
dependency: transitive
5555
description:
@@ -68,7 +68,7 @@ packages:
6868
path: ".."
6969
relative: true
7070
source: path
71-
version: "0.2.7+1"
71+
version: "0.3.0"
7272
flutter_test:
7373
dependency: "direct dev"
7474
description: flutter

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
sdk: ">=2.12.0 <3.0.0"
1010

1111
dependencies:
12-
eo_color: ^0.0.9
12+
eo_color: ^0.0.11
1313
flutter:
1414
sdk: flutter
1515

lib/palettes.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export 'src/brands/microsoft.dart';
1818
export 'src/brands/netflix.dart';
1919
export 'src/brands/oracle.dart';
2020
export 'src/brands/paypal.dart';
21+
export 'src/brands/pinterest.dart';
2122
export 'src/brands/reddit.dart';
2223
export 'src/brands/slack.dart';
2324
export 'src/brands/spotify.dart';

lib/src/brands/pinterest.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'package:eo_color/eo_color.dart';
2+
3+
/// Pinterest's official brand colors:
4+
///
5+
/// - Red;
6+
/// - White.
7+
///
8+
/// See also:
9+
/// - [pinterest colors](https://usbrandcolors.com/pinterest-colors/)
10+
class Pinterest extends PaletteRGB {
11+
/// Pinterest Red #E60023.
12+
const Pinterest.red() : super.opaque(0xE60023);
13+
14+
/// White #FFFFFF.
15+
const Pinterest.white() : super.white();
16+
}

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ packages:
4949
name: eo_color
5050
url: "https://pub.dartlang.org"
5151
source: hosted
52-
version: "0.0.9"
52+
version: "0.0.11"
5353
fake_async:
5454
dependency: transitive
5555
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
flutter: ">=1.17.0"
1010

1111
dependencies:
12-
eo_color: ^0.0.9
12+
eo_color: ^0.0.11
1313
flutter:
1414
sdk: flutter
1515

test/brands/pinterest_test.dart

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import 'dart:ui';
2+
3+
import 'package:flutter_brand_palettes/flutter_brand_palettes.dart';
4+
import 'package:flutter_test/flutter_test.dart';
5+
6+
/// [pinterest colors](https://usbrandcolors.com/pinterest-colors/)
7+
void main() {
8+
group('Pinterest Palette', () {
9+
test('red', () {
10+
expect(const Pinterest.red().color, const Color(0xFFE60023));
11+
});
12+
test('white', () {
13+
expect(const Pinterest.white().color, const Color(0xFFFFFFFF));
14+
});
15+
test('call method', () {
16+
const pinterest = Pinterest.white();
17+
expect(pinterest(), pinterest.color);
18+
});
19+
});
20+
}

0 commit comments

Comments
 (0)