Unverified Commit a167610e authored by Tonic Artos's avatar Tonic Artos Committed by GitHub

Remove superfluous GestureDetector. (#60730)

parent ff6b7809
...@@ -1632,38 +1632,32 @@ class _DetailView extends StatelessWidget { ...@@ -1632,38 +1632,32 @@ class _DetailView extends StatelessWidget {
final double screenHeight = MediaQuery.of(context).size.height; final double screenHeight = MediaQuery.of(context).size.height;
final double minHeight = (screenHeight - kToolbarHeight) / screenHeight; final double minHeight = (screenHeight - kToolbarHeight) / screenHeight;
return GestureDetector( return DraggableScrollableSheet(
onTap: () { initialChildSize: minHeight,
print('draggable'); minChildSize: minHeight,
}, maxChildSize: 1,
behavior: HitTestBehavior.deferToChild, expand: false,
child: DraggableScrollableSheet( builder: (BuildContext context, ScrollController controller) {
initialChildSize: minHeight, return MouseRegion(
minChildSize: minHeight, // TODO(TonicArtos): Remove MouseRegion workaround for pointer hover events passing through DraggableScrollableSheet once https://github.com/flutter/flutter/issues/59741 is resolved.
maxChildSize: 1, child: Card(
expand: false, color: Theme.of(context).cardColor,
builder: (BuildContext context, ScrollController controller) { elevation: _kCardElevation,
return MouseRegion( clipBehavior: Clip.antiAlias,
// TODO(TonicArtos): Remove MouseRegion workaround for pointer hover events passing through DraggableScrollableSheet once https://github.com/flutter/flutter/issues/59741 is resolved. margin: const EdgeInsets.fromLTRB(
child: Card( _kCardElevation, 0.0, _kCardElevation, 0.0),
color: Theme.of(context).cardColor, shape: const RoundedRectangleBorder(
elevation: _kCardElevation, borderRadius: BorderRadius.vertical(
clipBehavior: Clip.antiAlias, top: Radius.circular(3.0), bottom: Radius.zero),
margin: const EdgeInsets.fromLTRB(
_kCardElevation, 0.0, _kCardElevation, 0.0),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(
top: Radius.circular(3.0), bottom: Radius.zero),
),
child: _builder(
context,
_arguments,
controller,
),
), ),
); child: _builder(
}, context,
), _arguments,
controller,
),
),
);
},
); );
} }
} }
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