Commit d3b41867 authored by pq's avatar pq

Review nits.

parent d81212a3
...@@ -259,10 +259,10 @@ class CalcExpression { ...@@ -259,10 +259,10 @@ class CalcExpression {
case ExpressionState.NumberWithPoint: case ExpressionState.NumberWithPoint:
case ExpressionState.Result: case ExpressionState.Result:
return appendOperation(Operation.Subtraction); return appendOperation(Operation.Subtraction);
} default:
assert(state != null);
return null; return null;
} }
}
/// Computes the result of the current expression and returns a new /// Computes the result of the current expression and returns a new
/// ResultExpression containing the result. Returns null to indicate that /// ResultExpression containing the result. Returns null to indicate that
......
...@@ -99,7 +99,7 @@ class RaisedButton extends StatelessWidget { ...@@ -99,7 +99,7 @@ class RaisedButton extends StatelessWidget {
if (disabledColor != null) if (disabledColor != null)
return disabledColor; return disabledColor;
Brightness brightness = Theme.of(context).brightness; Brightness brightness = Theme.of(context).brightness;
switch (Theme.of(context).brightness) { switch (brightness) {
case Brightness.light: case Brightness.light:
return Colors.black12; return Colors.black12;
case Brightness.dark: case Brightness.dark:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment