From 98ef58396a619461e9e3f6814e5d16730bf3fda3 Mon Sep 17 00:00:00 2001 From: pq Date: Wed, 4 May 2016 13:37:23 -0700 Subject: [PATCH] Last literals get their types. Last fixes to get the repo running clean checking for annotations on list and map literals. --- examples/layers/services/isolate.dart | 2 +- examples/material_gallery/lib/demo/data_table_demo.dart | 2 +- examples/material_gallery/lib/demo/fitness_demo.dart | 2 +- examples/material_gallery/lib/demo/weather_demo.dart | 4 ++-- packages/flutter_markdown/lib/src/markdown_style_raw.dart | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/layers/services/isolate.dart b/examples/layers/services/isolate.dart index b5987325a6..bba6506209 100644 --- a/examples/layers/services/isolate.dart +++ b/examples/layers/services/isolate.dart @@ -181,7 +181,7 @@ class CalculationManager { SendPort sender = message.sendPort; Calculator calculator = new Calculator( onProgressListener: (double completed, double total) { - sender.send([ completed, total ]); + sender.send([ completed, total ]); }, onResultListener: (String result) { sender.send(result); diff --git a/examples/material_gallery/lib/demo/data_table_demo.dart b/examples/material_gallery/lib/demo/data_table_demo.dart index 14bb144430..2b6a0a325e 100644 --- a/examples/material_gallery/lib/demo/data_table_demo.dart +++ b/examples/material_gallery/lib/demo/data_table_demo.dart @@ -31,7 +31,7 @@ class _DataTableDemoState extends State { int _sortColumnIndex; bool _sortAscending = true; - final List _deserts = [ + final List _deserts = [ new Desert('Frozen yogurt', 159, 6.0, 24, 4.0, 87, 14, 1), new Desert('Ice cream sandwich', 237, 9.0, 37, 4.3, 129, 8, 1), new Desert('Eclair', 262, 16.0, 24, 6.0, 337, 6, 7), diff --git a/examples/material_gallery/lib/demo/fitness_demo.dart b/examples/material_gallery/lib/demo/fitness_demo.dart index 480bc244bb..01707985c2 100644 --- a/examples/material_gallery/lib/demo/fitness_demo.dart +++ b/examples/material_gallery/lib/demo/fitness_demo.dart @@ -380,7 +380,7 @@ class _JumpingJackSide extends Node { void animateJumping() { actions.stopAll(); - actions.run(new ActionSequence([ + actions.run(new ActionSequence([ _createPoseAction(null, 0, 0.5), new ActionCallFunction(_animateJumpingLoop) ])); diff --git a/examples/material_gallery/lib/demo/weather_demo.dart b/examples/material_gallery/lib/demo/weather_demo.dart index 0c6b852df3..defa7b1f45 100644 --- a/examples/material_gallery/lib/demo/weather_demo.dart +++ b/examples/material_gallery/lib/demo/weather_demo.dart @@ -386,7 +386,7 @@ class Sun extends Node { if (active) { for (Ray ray in _rays) { - actions.run(new ActionSequence([ + actions.run(new ActionSequence([ new ActionDelay(1.5), new ActionTween( (double a) => ray.opacity = a, @@ -427,7 +427,7 @@ class Ray extends Sprite { double scaleTime = randomSignedDouble() * 2.0 + 4.0; actions.run(new ActionRepeatForever( - new ActionSequence([ + new ActionSequence([ new ActionTween((double a) => scaleX = a, scaleX, scaleX * 0.5, scaleTime), new ActionTween((double a) => scaleX = a, scaleX * 0.5, scaleX, scaleTime) ]) diff --git a/packages/flutter_markdown/lib/src/markdown_style_raw.dart b/packages/flutter_markdown/lib/src/markdown_style_raw.dart index 4b694855bd..2bcac36083 100644 --- a/packages/flutter_markdown/lib/src/markdown_style_raw.dart +++ b/packages/flutter_markdown/lib/src/markdown_style_raw.dart @@ -100,7 +100,7 @@ class MarkdownStyleRaw { Map get styles => _styles; void _init() { - _styles = { + _styles = { 'a': a, 'p': p, 'li': p,