Skip to content

Commit f0b440f

Browse files
authored
refactor: bump up eo_color (#91)
Closes #90
1 parent 87304a4 commit f0b440f

File tree

6 files changed

+8
-20
lines changed

6 files changed

+8
-20
lines changed

example/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: "1.0.0"
52+
version: "1.1.2"
5353
fake_async:
5454
dependency: transitive
5555
description:

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: ^1.0.0
12+
eo_color: ^1.1.2
1313
flutter:
1414
sdk: flutter
1515

lib/src/brands/google/google_grad.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import 'dart:ui';
2-
3-
import 'package:eo_color/swatches.dart';
1+
import 'package:eo_color/gradients.dart';
42

53
import 'google.dart';
64

75
/// Google gradient.
8-
class GoogleGrad extends SwatchBase {
6+
class GoogleGrad extends GradientImmu {
97
/// Google's official color sequence
108
///
119
/// There are 4 valid indexes
@@ -24,8 +22,4 @@ class GoogleGrad extends SwatchBase {
2422
Google.green(),
2523
]);
2624
// coverage:ignore-end
27-
28-
/// color gradient as an immutable list
29-
@override
30-
List<Color> get colors => List.unmodifiable(super.colors);
3125
}

lib/src/brands/instagram/instagram_grad.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import 'dart:ui';
2-
3-
import 'package:eo_color/swatches.dart';
1+
import 'package:eo_color/gradients.dart';
42

53
import 'instagram.dart';
64

75
/// Instagram gradient.
8-
class InstagramGrad extends SwatchBase {
6+
class InstagramGrad extends GradientImmu {
97
/// Instagram's official color sequence
108
///
119
/// There are 10 valid indexes
@@ -36,8 +34,4 @@ class InstagramGrad extends SwatchBase {
3634
Instagram.lightYellow(),
3735
]);
3836
// coverage:ignore-end
39-
40-
/// color gradient as an immutable list
41-
@override
42-
List<Color> get colors => List.unmodifiable(super.colors);
4337
}

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: "1.0.0"
52+
version: "1.1.2"
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: ^1.0.0
12+
eo_color: ^1.1.2
1313
flutter:
1414
sdk: flutter
1515

0 commit comments

Comments
 (0)