-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #139
- Loading branch information
Showing
16 changed files
with
58 additions
and
55 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,24 +1,17 @@ | ||
include: package:lint/package.yaml | ||
|
||
analyzer: | ||
strong-mode: | ||
# A value of false ensures that the type inference engine never implicitly casts | ||
# from dynamic to a more specific type. | ||
implicit-casts: false | ||
# A value of false ensures that the type inference engine never chooses the | ||
# dynamic type when it can’t determine a static type. | ||
implicit-dynamic: false | ||
exclude: | ||
- '**.freezed.dart' | ||
- '**.g.dart' | ||
linter: | ||
rules: | ||
# Make constructors the first thing in every class | ||
sort_unnamed_constructors_first: true | ||
sort_constructors_first: true | ||
avoid_catches_without_on_clauses: true | ||
avoid_equals_and_hash_code_on_mutable_classes: true | ||
cancel_subscriptions: true | ||
# Good packages document everything | ||
public_member_api_docs: true | ||
unawaited_futures: true | ||
# It's a good practice to expose the ability to provide a key when creating | ||
# public widgets. | ||
use_key_in_widget_constructors: true | ||
always_declare_return_types: true | ||
cancel_subscriptions: true | ||
close_sinks: true | ||
only_throw_errors: true | ||
package_api_docs: true |
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,4 +1,15 @@ | ||
include: package:lint/strict.yaml | ||
|
||
analyzer: | ||
exclude: | ||
- '**.freezed.dart' | ||
- '**.g.dart' | ||
linter: | ||
rules: | ||
unawaited_futures: true | ||
# Make constructors the first thing in every class | ||
sort_unnamed_constructors_first: true | ||
sort_constructors_first: true | ||
avoid_catches_without_on_clauses: true | ||
avoid_equals_and_hash_code_on_mutable_classes: true | ||
cancel_subscriptions: true | ||
only_throw_errors: true |
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
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
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
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,7 +1,7 @@ | ||
import 'dart:ui'; | ||
|
||
/// Color palette from which a color can be selected. | ||
abstract class Palette { | ||
abstract interface class Palette { | ||
/// The selected color. | ||
Color get color; | ||
} |
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
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
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