Skip to content

Conversation

@abarth
Copy link
Contributor

@abarth abarth commented Feb 4, 2017

Someone on stack overflow was mutating the list of recipes and getting
confused about why the UI didn't redraw. Making kPestoRecipes a constant
might help avoid that confusion.

Someone on stack overflow was mutating the list of recipes and getting
confused about why the UI didn't redraw. Making kPestoRecipes a constant
might help avoid that confusion.
@abarth
Copy link
Contributor Author

abarth commented Feb 4, 2017

@Hixie @HansMuller

@Hixie
Copy link
Contributor

Hixie commented Feb 4, 2017

LGTM

@abarth abarth merged commit 652e9c7 into flutter:master Feb 4, 2017
@abarth abarth deleted the pesto_const branch February 4, 2017 17:33
Hixie pushed a commit to Hixie/flutter that referenced this pull request Feb 4, 2017
Someone on stack overflow was mutating the list of recipes and getting
confused about why the UI didn't redraw. Making kPestoRecipes a constant
might help avoid that confusion.
@sethladd
Copy link
Contributor

sethladd commented Feb 5, 2017 via email

@sethladd
Copy link
Contributor

sethladd commented Feb 6, 2017

Should this kind of code pattern go into Effective Flutter (when we write Effective Flutter, that is :)

I want to collect patterns for our upcoming doc: #7044

@abarth
Copy link
Contributor Author

abarth commented Feb 6, 2017

Using const data like this is useful for demos, but I suspect real apps will want to get there data from some live source, like disk or network.

cbracken added a commit to cbracken/flutter that referenced this pull request Feb 21, 2019
flutter/engine@293b3de98 Roll src/third_party/skia 20ebd0cb3882..348227b89430 (4 commits) (flutter/engine#7900)
flutter/engine@6e6020d29 Eliminate .member = foo struct initialization (flutter/engine#7899)
flutter/engine@6d8bd99af Revert "Reland PerformanceOverlayLayer golden test (flutter/engine#7863)" (flutter#7895)
flutter/engine@39f7066b6 Test profile and release build and unit tests (flutter/engine#7880)
flutter/engine@abe9826a9 Add accessibility semantics support to embedder (flutter/engine#7891)
flutter/engine@ce7016e1f Roll src/third_party/skia e471c05f92e8..20ebd0cb3882 (4 commits) (flutter/engine#7894)
flutter/engine@684c9394c Respect the custom GL proc table when creating the resource context on the IO thread. (flutter/engine#7893)
flutter/engine@e11d0e96f Android embedding refactor pr5 add flutterengine impl (flutter/engine#7878)
flutter/engine@2f4a38dbd Android embedding refactor pr3 add remaining systemchannels (flutter/engine#7892)
flutter/engine@8427d73c8 Reland PerformanceOverlayLayer golden test (flutter/engine#7863)
flutter/engine@61fc1786f Roll src/third_party/dart c92d5ca288..5ddd157809 (153 commits)
flutter/engine@b0671145a Roll src/third_party/skia 7738736f9622..e471c05f92e8 (23 commits) (flutter/engine#7889)
flutter/engine@6d7eb5218 Revert "Android embedding refactor pr3 add remaining systemchannels (flutter/engine#7874)" (flutter#7886)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants