Skip to content

Commit 74ef815

Browse files
committed
refactor!: bump up dependencies
Breaking Changes. Closes #101
1 parent d6d1def commit 74ef815

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+47
-182
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- improvements to README.
13+
14+
### Changed
15+
16+
- bump up eo_color dependency to 2.0.0.
17+
- stricter lint rules.
18+
19+
### Removed
20+
21+
- support for the function `call` operator (the eo_color package stopped
22+
supporting it from version 2.0.0 onwards) — **BREAKING CHANGE**.
23+
1024
## [0.3.10] - 2021-08-06
1125

1226
### Changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Rultor.com](https://www.rultor.com/b/dartoos-dev/flutter_brand_palettes)](https:
1111

1212
[![pub](https://img.shields.io/pub/v/flutter_brand_palettes)](https://pub.dev/packages/flutter_brand_palettes)
1313
[![license](https://img.shields.io/badge/license-mit-green.svg)](https://github.com/dartoos-dev/flutter_brand_palettes/blob/master/LICENSE)
14-
[![PDD status](https://www.0pdd.com/svg?name=dartoos-dev/flutter_brand_palettes)](https://www.0pdd.com/p?name=dartoos-dev/flutter_brand_palettes)
15-
14+
<!-- >[![PDD status](https://www.0pdd.com/svg?name=dartoos-dev/flutter_brand_palettes)](https://www.0pdd.com/p?name=dartoos-dev/flutter_brand_palettes) -->
1615
[![build](https://github.com/dartoos-dev/flutter_brand_palettes/actions/workflows/build.yml/badge.svg)](https://github.com/dartoos-dev/flutter_brand_palettes/actions/)
1716
[![codecov](https://codecov.io/gh/dartoos-dev/flutter_brand_palettes/branch/master/graph/badge.svg?token=Hvpu48mfx1)](https://codecov.io/gh/dartoos-dev/flutter_brand_palettes)
1817
[![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/rafamizes/flutter_brand_palettes)](https://www.codefactor.io/repository/github/rafamizes/flutter_brand_palettes)
@@ -42,8 +41,8 @@ _Gradient_.
4241

4342
For a single color, simply select it from the color palette class it belongs to.
4443
For example, the command `Instagram.royalBlue()` retrieves the royal blue color
45-
from the Instagram color palette; `Instagram.yellow()` retrieves the yellow
46-
color; and so on.
44+
from the Instagram color palette; likewise, `Instagram.yellow()` retrieves the
45+
yellow color; and so on.
4746

4847
In addition, all classes are well-documented and fully unit-tested, passing
4948
through a CI pipeline with rigorous quality ports.
@@ -55,8 +54,9 @@ constructor of its corresponding brand class. In this way, the source code
5554
becomes more object-oriented, readable and maintainable.
5655

5756
For example, the command `Facebook.blue().color` returns Facebook's blue color
58-
_#4267B2_. Likewise, the command `Instagram.red().color` returns Instagram's red
59-
color _#FD1D1D_; `Google.red().color`, Google's red color _#DB4437_.
57+
_#4267B2_. Similarly, the command `Instagram.red().color` returns Instagram's
58+
red color _#FD1D1D_; `Google.red().color`, Google's red color _#DB4437_.
59+
Therefore, the command pattern for any brand is: _'Brand.colorName().color'_.
6060

6161
## Color Palettes in Action
6262

@@ -106,7 +106,7 @@ The result of the previous code in full screen
106106
## Demo application
107107

108108
The demo application provides a fully working example, focused on demonstrating
109-
exactly one brand in action — Instagram. You can take the code in this demo and
109+
exactly one brand in action: _Instagram_. You can take the code in this demo and
110110
experiment with it.
111111

112112
To run the demo application:

example/pubspec.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.7.0"
10+
version: "2.8.2"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
@@ -49,7 +49,7 @@ packages:
4949
name: eo_color
5050
url: "https://pub.dartlang.org"
5151
source: hosted
52-
version: "1.1.9"
52+
version: "2.0.0"
5353
fake_async:
5454
dependency: transitive
5555
description:
@@ -63,12 +63,12 @@ packages:
6363
source: sdk
6464
version: "0.0.0"
6565
flutter_brand_palettes:
66-
dependency: "direct overridden"
66+
dependency: "direct main"
6767
description:
6868
path: ".."
6969
relative: true
7070
source: path
71-
version: "0.3.9"
71+
version: "0.3.10"
7272
flutter_test:
7373
dependency: "direct dev"
7474
description: flutter
@@ -80,14 +80,14 @@ packages:
8080
name: lint
8181
url: "https://pub.dartlang.org"
8282
source: hosted
83-
version: "1.5.3"
83+
version: "1.7.2"
8484
matcher:
8585
dependency: transitive
8686
description:
8787
name: matcher
8888
url: "https://pub.dartlang.org"
8989
source: hosted
90-
version: "0.12.10"
90+
version: "0.12.11"
9191
meta:
9292
dependency: transitive
9393
description:
@@ -148,7 +148,7 @@ packages:
148148
name: test_api
149149
url: "https://pub.dartlang.org"
150150
source: hosted
151-
version: "0.4.1"
151+
version: "0.4.3"
152152
typed_data:
153153
dependency: transitive
154154
description:
@@ -164,5 +164,5 @@ packages:
164164
source: hosted
165165
version: "2.1.0"
166166
sdks:
167-
dart: ">=2.12.0 <3.0.0"
167+
dart: ">=2.14.0-360.0.dev <3.0.0"
168168
flutter: ">=1.17.0"

example/pubspec.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ environment:
99
sdk: ">=2.12.0 <3.0.0"
1010

1111
dependencies:
12-
eo_color: ^1.1.5
12+
eo_color: ^2.0.0
1313
flutter:
1414
sdk: flutter
15+
flutter_brand_palettes:
16+
# will always depend on the cutting-edge version of the package.
17+
path: ../
1518

1619
dev_dependencies:
1720
flutter_test:
1821
sdk: flutter
19-
lint: ^1.5.3
20-
21-
dependency_overrides:
22-
flutter_brand_palettes:
23-
path: ../
22+
lint: ^1.7.2
2423

2524
flutter:
2625
uses-material-design: true

lib/src/brands/google/google_grad.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:eo_color/gradients.dart';
33
import 'google.dart';
44

55
/// Google gradient.
6-
class GoogleGrad extends GradientImmu {
6+
class GoogleGrad extends GradientImmut {
77
/// Google's official color sequence
88
///
99
/// There are 4 valid indexes

lib/src/brands/instagram/instagram_grad.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:eo_color/gradients.dart';
33
import 'instagram.dart';
44

55
/// Instagram gradient.
6-
class InstagramGrad extends GradientImmu {
6+
class InstagramGrad extends GradientImmut {
77
/// Instagram's official color sequence
88
///
99
/// There are 10 valid indexes

pubspec.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.7.0"
10+
version: "2.8.2"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
@@ -49,7 +49,7 @@ packages:
4949
name: eo_color
5050
url: "https://pub.dartlang.org"
5151
source: hosted
52-
version: "1.1.9"
52+
version: "2.0.0"
5353
fake_async:
5454
dependency: transitive
5555
description:
@@ -73,14 +73,14 @@ packages:
7373
name: lint
7474
url: "https://pub.dartlang.org"
7575
source: hosted
76-
version: "1.5.3"
76+
version: "1.7.2"
7777
matcher:
7878
dependency: transitive
7979
description:
8080
name: matcher
8181
url: "https://pub.dartlang.org"
8282
source: hosted
83-
version: "0.12.10"
83+
version: "0.12.11"
8484
meta:
8585
dependency: transitive
8686
description:
@@ -141,7 +141,7 @@ packages:
141141
name: test_api
142142
url: "https://pub.dartlang.org"
143143
source: hosted
144-
version: "0.4.1"
144+
version: "0.4.3"
145145
typed_data:
146146
dependency: transitive
147147
description:
@@ -157,5 +157,5 @@ packages:
157157
source: hosted
158158
version: "2.1.0"
159159
sdks:
160-
dart: ">=2.12.0 <3.0.0"
160+
dart: ">=2.14.0-360.0.dev <3.0.0"
161161
flutter: ">=1.17.0"

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ environment:
99
flutter: ">=1.17.0"
1010

1111
dependencies:
12-
eo_color: ^1.1.9
12+
eo_color: ^2.0.0
1313
flutter:
1414
sdk: flutter
1515

1616
dev_dependencies:
1717
flutter_test:
1818
sdk: flutter
19-
lint: ^1.5.3
19+
lint: ^1.7.2

test/brands/amazon_test.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,5 @@ void main() {
1212
test('orange', () {
1313
expect(const Amazon.orange().color, const Color(0xFFFF9900));
1414
});
15-
test('call method', () {
16-
const amazon = Amazon.orange();
17-
expect(amazon(), amazon.color);
18-
});
1915
});
2016
}

test/brands/american_express_test.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,5 @@ void main() {
1818
test('neutral2', () {
1919
expect(const AmericanExpress.neutral2().color, const Color(0xFF323031));
2020
});
21-
test('call method', () {
22-
const americanExpress = AmericanExpress.neutral2();
23-
expect(americanExpress(), americanExpress.color);
24-
});
2521
});
2622
}

0 commit comments

Comments
 (0)