Fix analyzer warning (#3499)

We don't need this assert anyway.
This commit is contained in:
Adam Barth 2016-04-22 11:36:15 -07:00
parent c486fc4a96
commit d74025f451

View File

@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/scheduler.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'colors.dart'; import 'colors.dart';
@ -171,7 +170,6 @@ class DrawerControllerState extends State<DrawerController> {
} }
double get _width { double get _width {
assert(!Scheduler.debugInFrame); // we should never try to read the tree state while building or laying out
RenderBox drawerBox = _drawerKey.currentContext?.findRenderObject(); RenderBox drawerBox = _drawerKey.currentContext?.findRenderObject();
if (drawerBox != null) if (drawerBox != null)
return drawerBox.size.width; return drawerBox.size.width;