mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
Beta branch fix (#173)
This commit is contained in:
committed by
Andrew Brogdon
parent
6673acc6d7
commit
73086e20c1
@@ -51,9 +51,8 @@ class ExpandingBottomSheet extends StatefulWidget {
|
||||
{bool isNullOk = false}) {
|
||||
assert(isNullOk != null);
|
||||
assert(context != null);
|
||||
final _ExpandingBottomSheetState result = context.ancestorStateOfType(
|
||||
const TypeMatcher<_ExpandingBottomSheetState>())
|
||||
as _ExpandingBottomSheetState;
|
||||
final _ExpandingBottomSheetState result =
|
||||
context.findAncestorStateOfType<_ExpandingBottomSheetState>();
|
||||
if (isNullOk || result != null) {
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user