Skip to content

Commit

Permalink
prepare v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TesteurManiak committed May 23, 2023
1 parent 9c71c4a commit 5187c6e
Show file tree
Hide file tree
Showing 19 changed files with 581 additions and 525 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1.5.3
with:
flutter-version: '2.10.2'
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2.10.0
- run: flutter pub get
- name: Test
run: flutter test --coverage --dart-define=CI=true
- name: Collect and report coverage
uses: coverallsapp/github-action@v1.1.2
uses: coverallsapp/github-action@v2.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.0.0

* Removed `IconDecoration.shadows`, use `Icon.shadows` instead
* Support for Dart 3
* Upgraded dependencies
* Updated linting

## 1.0.1

* Fix gradient issue [#3](https://github.com/TesteurManiak/icon_decoration/issues/3)
Expand Down
16 changes: 1 addition & 15 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
include: package:flutter_lints/flutter.yaml

linter:
rules:
- avoid_bool_literals_in_conditional_expressions
- avoid_escaping_inner_quotes
- avoid_positional_boolean_parameters
- flutter_style_todos
- one_member_abstracts
- parameter_assignments
- prefer_null_aware_method_calls
- require_trailing_commas
- use_is_even_rather_than_modulo
- use_named_constants
- use_to_and_as_if_applicable
include: package:fd_lints/flutter.yaml
112 changes: 64 additions & 48 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ void main() {
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -25,43 +25,39 @@ class MyApp extends StatelessWidget {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Row(
const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const DecoratedIcon(
DecoratedIcon(
icon: Icon(
Icons.lightbulb_outline,
color: Colors.lightBlueAccent,
size: 36,
),
decoration: IconDecoration(
shadows: [
Shadow(blurRadius: 3, color: Colors.lightBlueAccent),
],
),
),
DecoratedIcon(
icon: const Icon(
Icons.lightbulb_outline,
color: Colors.lightBlueAccent,
size: 36,
),
decoration: IconDecoration(shadows: [
Shadow(
blurRadius: 3,
color: Colors.lightBlueAccent.shade100,
),
]),
icon: Icon(Icons.lightbulb_outline,
color: Colors.lightBlueAccent,
size: 36,
shadows: [
Shadow(
blurRadius: 3,
color: Color.fromARGB(255, 128, 216, 255),
),
]),
),
const DecoratedIcon(
DecoratedIcon(
icon: Icon(
Icons.lightbulb_outline,
color: Colors.lightBlueAccent,
size: 36,
shadows: [
Shadow(blurRadius: 2, color: Colors.lightBlueAccent),
],
),
decoration: IconDecoration(shadows: [
Shadow(blurRadius: 2, color: Colors.lightBlueAccent),
]),
)
],
),
Expand All @@ -73,74 +69,94 @@ class MyApp extends StatelessWidget {
Icons.home,
color: Colors.green.shade900,
size: 36,
shadows: const [
Shadow(color: Colors.yellowAccent, blurRadius: 3),
],
),
decoration: const IconDecoration(shadows: [
Shadow(color: Colors.yellowAccent, blurRadius: 3),
]),
),
DecoratedIcon(
icon: Icon(
Icons.home,
color: Colors.green.shade900,
size: 36,
shadows: [
Shadow(color: Colors.green.shade900, blurRadius: 3),
],
),
decoration: IconDecoration(shadows: [
Shadow(color: Colors.green.shade900, blurRadius: 3),
]),
),
DecoratedIcon(
icon: Icon(
Icons.home,
color: Colors.green.shade900,
size: 36,
shadows: [
Shadow(color: Colors.green.shade900, blurRadius: 2),
],
),
decoration: IconDecoration(shadows: [
Shadow(color: Colors.green.shade900, blurRadius: 2),
]),
)
],
),
Row(
const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
DecoratedIcon(
icon: const Icon(Icons.access_alarm, size: 36),
decoration: IconDecoration(shadows: [
Shadow(
color: Colors.yellowAccent.shade400, blurRadius: 3),
]),
icon: Icon(
Icons.access_alarm,
size: 36,
shadows: [
Shadow(
color: Color.fromARGB(255, 255, 234, 0),
blurRadius: 3,
),
],
),
),
DecoratedIcon(
icon: const Icon(Icons.access_alarm, size: 36),
decoration: IconDecoration(shadows: [
Shadow(color: Colors.red.shade400, blurRadius: 3),
]),
icon: Icon(
Icons.access_alarm,
size: 36,
shadows: [
Shadow(
color: Color.fromARGB(255, 239, 83, 80),
blurRadius: 3,
),
],
),
),
DecoratedIcon(
icon: const Icon(Icons.access_alarm, size: 36),
decoration: IconDecoration(shadows: [
Shadow(color: Colors.cyanAccent.shade400, blurRadius: 3),
]),
icon: Icon(
Icons.access_alarm,
size: 36,
shadows: [
Shadow(
color: Color.fromARGB(255, 0, 229, 255),
blurRadius: 3,
),
],
),
)
],
),
Row(
const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
children: [
DecoratedIcon(
icon: Icon(Icons.favorite, size: 36),
decoration: IconDecoration(
border: IconBorder(color: Colors.yellow, width: 4),
),
),
DecoratedIcon(
icon: Icon(Icons.favorite, size: 36),
decoration: IconDecoration(
border: IconBorder(color: Colors.red, width: 4),
icon: Icon(
Icons.favorite,
size: 36,
shadows: [
Shadow(color: Colors.red, blurRadius: 6),
],
),
decoration: IconDecoration(
border: IconBorder(color: Colors.red, width: 4),
),
),
DecoratedIcon(
icon: Icon(Icons.favorite, size: 36, color: Colors.red),
Expand Down
Loading

0 comments on commit 5187c6e

Please sign in to comment.