Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Issue 1219933004: Make it harder to forget itemCount for FixedHeightScrollable (Closed)

Created:
5 years, 5 months ago by abarth-chromium
Modified:
5 years, 5 months ago
Reviewers:
tonyg, tonyg_google, Hixie
CC:
gregsimon, jackson_old, mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Make it harder to forget itemCount for FixedHeightScrollable Previously, if a subclass of FixedHeightScrollable didn't set itemCount, everything would silently work except that you wouldn't actully be able to scroll. This CL makes it harder to forget to provide the itemCount by making it an abstract getter. Now the analyzer will flag it as missing in subclasses and we'll throw an exception at runtime if you forget it. R=ianh@google.com, tonyg@google.com Committed: https://chromium.googlesource.com/external/mojo/+/e14757d2a9aeed883e1e33878fe4cba9ee9dbbee

Patch Set 1 #

Total comments: 2

Patch Set 2 : address ian's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -37 lines) Patch
M sky/sdk/example/demo_launcher/lib/main.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M sky/sdk/example/stocks/lib/stock_home.dart View 1 2 chunks +18 lines, -6 lines 0 comments Download
M sky/sdk/example/stocks/lib/stock_list.dart View 1 1 chunk +5 lines, -13 lines 0 comments Download
M sky/sdk/lib/widgets/fixed_height_scrollable.dart View 3 chunks +15 lines, -15 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
abarth-chromium
5 years, 5 months ago (2015-07-07 15:18:17 UTC) #1
Hixie
lgtm https://codereview.chromium.org/1219933004/diff/1/sky/sdk/example/stocks/lib/stock_list.dart File sky/sdk/example/stocks/lib/stock_list.dart (right): https://codereview.chromium.org/1219933004/diff/1/sky/sdk/example/stocks/lib/stock_list.dart#newcode16 sky/sdk/example/stocks/lib/stock_list.dart:16: this.query do we still need to remember the ...
5 years, 5 months ago (2015-07-07 15:25:13 UTC) #3
abarth-chromium
https://codereview.chromium.org/1219933004/diff/1/sky/sdk/example/stocks/lib/stock_list.dart File sky/sdk/example/stocks/lib/stock_list.dart (right): https://codereview.chromium.org/1219933004/diff/1/sky/sdk/example/stocks/lib/stock_list.dart#newcode16 sky/sdk/example/stocks/lib/stock_list.dart:16: this.query On 2015/07/07 at 15:25:13, Hixie wrote: > do ...
5 years, 5 months ago (2015-07-07 15:26:21 UTC) #4
Hixie
we should probably hoist the filtering up to the list owner, so we don't refilter ...
5 years, 5 months ago (2015-07-07 15:27:36 UTC) #5
abarth-chromium
On 2015/07/07 at 15:27:36, ianh wrote: > we should probably hoist the filtering up to ...
5 years, 5 months ago (2015-07-07 15:43:46 UTC) #6
abarth-chromium
Committed patchset #2 (id:20001) manually as e14757d2a9aeed883e1e33878fe4cba9ee9dbbee (presubmit successful).
5 years, 5 months ago (2015-07-07 15:44:32 UTC) #7
tonyg
lgtm Thanks
5 years, 5 months ago (2015-07-07 15:58:04 UTC) #9
Hixie
5 years, 5 months ago (2015-07-07 16:00:03 UTC) #10
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698