| Index: sky/framework/components/drawer.dart
|
| diff --git a/sky/framework/components/drawer.dart b/sky/framework/components/drawer.dart
|
| index 20045479735374bf1f554ac20f468f3f43cb9511..78b61b968a5bd89251ac9a57fc04961b546e1c85 100644
|
| --- a/sky/framework/components/drawer.dart
|
| +++ b/sky/framework/components/drawer.dart
|
| @@ -22,6 +22,8 @@ const Curve _kAnimationCurve = parabolicRise;
|
| class DrawerController {
|
| final AnimatedValue position = new AnimatedValue(-_kWidth);
|
|
|
| + bool get isClosed => position.value == -_kWidth;
|
| +
|
| bool get _isMostlyClosed => position.value <= -_kWidth / 2;
|
|
|
| void toggle(_) => _isMostlyClosed ? _open() : _close();
|
|
|