Skip to content

Commit

Permalink
Update to latest Dart 2.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Jun 28, 2019
1 parent 010675d commit 76e781b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ linter:
- prefer_foreach
- prefer_function_declarations_over_variables
- prefer_generic_function_type_aliases
- prefer_if_null_operators
- prefer_if_elements_to_conditional_expressions
- prefer_initializing_formals
- prefer_inlined_adds
Expand All @@ -108,13 +109,15 @@ linter:
- prefer_mixin
- prefer_null_aware_operators
- prefer_single_quotes
# - prefer_double_quotes
- prefer_spread_collections
- prefer_typing_uninitialized_variables
- prefer_void_to_null
- provide_deprecation_message
# - public_member_api_docs
- recursive_getters
- slash_for_doc_comments
- sort_child_properties_last
# - sort_constructors_first
- sort_pub_dependencies
# - sort_unnamed_constructors_first
Expand All @@ -135,6 +138,7 @@ linter:
- unnecessary_parenthesis
- unnecessary_statements
- unnecessary_this
- unsafe_html
- unrelated_type_equality_checks
- use_full_hex_values_for_flutter_colors
- use_function_type_syntax_for_parameters
Expand Down
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To run the tooltip example execute the following commands from the command line

```bash
pub global activate webdev
webdev serve
webdev serve example:8080
```

### Traffic Lights
Expand Down
4 changes: 2 additions & 2 deletions example/tooltip/tooltip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class Tooltip {
int offsetX = 0,
int offsetY = 0,
Duration delay = const Duration(milliseconds: 500)}) =>
Tooltip._internal(root == null ? document.body : root, dataKey,
baseCssClass, visibleCssClass, offsetX, offsetY, delay);
Tooltip._internal(root ?? document.body, dataKey, baseCssClass,
visibleCssClass, offsetX, offsetY, delay);

Tooltip._internal(this.root, this.dataKey, this.baseCssClass,
this.visibleCssClass, this.offsetX, this.offsetY, Duration delay) {
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ description: A simple, yet powerful state machine framework for Dart supporting
Flutter and web apps.

environment:
sdk: '>=2.3.0 <3.0.0'
sdk: '>=2.4.0 <3.0.0'
dev_dependencies:
test: ^1.6.0
build_runner: ^1.4.0
build_web_compilers: ^2.0.0
build_web_compilers: ^2.1.0

0 comments on commit 76e781b

Please sign in to comment.