immutability work

This commit is contained in:
Christien Rioux 2023-07-05 22:55:41 -05:00
parent e1a1baf4b1
commit 4e91502f9e
4 changed files with 19 additions and 26 deletions

View File

@ -1,28 +1,5 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml include: package:flutter_lints/flutter.yaml
linter: analyzer:
# The lint rules applied to this project can be customized in the errors:
# section below to disable rules from the `package:flutter_lints/flutter.yaml` invalid_annotation_target: ignore
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
unawaited_futures: true
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

7
build.yaml Normal file
View File

@ -0,0 +1,7 @@
targets:
$default:
builders:
json_serializable:
options:
explicit_to_json: true
field_rename: snake

View File

@ -257,6 +257,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.3.1" version: "1.3.1"
fast_immutable_collections:
dependency: "direct main"
description:
name: fast_immutable_collections
sha256: b4f7d3af6e90a80cf7a3dddd0de3b4a46acb446320795b77b034535c4d267fbe
url: "https://pub.dev"
source: hosted
version: "9.1.5"
ffi: ffi:
dependency: transitive dependency: transitive
description: description:

View File

@ -26,6 +26,7 @@ dependencies:
animated_theme_switcher: ^2.0.7 animated_theme_switcher: ^2.0.7
shared_preferences: ^2.0.15 shared_preferences: ^2.0.15
go_router: ^9.0.0 go_router: ^9.0.0
fast_immutable_collections: ^9.1.5
dev_dependencies: dev_dependencies:
flutter_test: flutter_test: