Fix color of icons in drawers in dark theme.

This makes it match the material spec more.
https://www.google.com/design/spec/style/icons.html

Fixes https://github.com/flutter/flutter/issues/1357
This commit is contained in:
Ian Hickson
2016-02-12 23:18:39 -08:00
parent 576b3aa206
commit 3eb1b412e0
12 changed files with 329 additions and 27 deletions

View File

@@ -29,17 +29,26 @@ class WidgetTester extends Instrumentation {
final FakeAsync async;
final Clock clock;
/// Calls [runApp()] with the given widget, then triggers a frame sequent and
/// flushes microtasks, by calling [pump()] with the same duration (if any).
void pumpWidget(Widget widget, [ Duration duration ]) {
runApp(widget);
pump(duration);
}
/// Artificially calls dispatchLocaleChanged on the Widget binding,
/// then flushes microtasks.
void setLocale(String languageCode, String countryCode) {
Locale locale = new Locale(languageCode, countryCode);
binding.dispatchLocaleChanged(locale);
async.flushMicrotasks();
}
/// Triggers a frame sequence (build/layout/paint/etc),
/// then flushes microtasks.
///
/// If duration is set, then advances the clock by that much first.
/// Doing this flushes microtasks.
void pump([ Duration duration ]) {
if (duration != null)
async.elapse(duration);