Review nits.

This commit is contained in:
pq
2016-06-14 15:32:42 -07:00
parent d81212a387
commit d3b4186744
2 changed files with 3 additions and 3 deletions

View File

@@ -259,9 +259,9 @@ class CalcExpression {
case ExpressionState.NumberWithPoint:
case ExpressionState.Result:
return appendOperation(Operation.Subtraction);
default:
return null;
}
assert(state != null);
return null;
}
/// Computes the result of the current expression and returns a new

View File

@@ -99,7 +99,7 @@ class RaisedButton extends StatelessWidget {
if (disabledColor != null)
return disabledColor;
Brightness brightness = Theme.of(context).brightness;
switch (Theme.of(context).brightness) {
switch (brightness) {
case Brightness.light:
return Colors.black12;
case Brightness.dark: