|
@@ -65,18 +65,23 @@ class _CupertinoControlsState extends State<CupertinoControls> {
|
|
|
final barHeight = orientation == Orientation.portrait ? 30.0 : 47.0;
|
|
final barHeight = orientation == Orientation.portrait ? 30.0 : 47.0;
|
|
|
final buttonPadding = orientation == Orientation.portrait ? 16.0 : 24.0;
|
|
final buttonPadding = orientation == Orientation.portrait ? 16.0 : 24.0;
|
|
|
|
|
|
|
|
- return GestureDetector(
|
|
|
|
|
- onTap: () {
|
|
|
|
|
|
|
+ return MouseRegion(
|
|
|
|
|
+ onHover: (_) {
|
|
|
_cancelAndRestartTimer();
|
|
_cancelAndRestartTimer();
|
|
|
},
|
|
},
|
|
|
- child: AbsorbPointer(
|
|
|
|
|
- absorbing: _hideStuff,
|
|
|
|
|
- child: Column(
|
|
|
|
|
- children: <Widget>[
|
|
|
|
|
- _buildTopBar(backgroundColor, iconColor, barHeight, buttonPadding),
|
|
|
|
|
- _buildHitArea(),
|
|
|
|
|
- _buildBottomBar(backgroundColor, iconColor, barHeight),
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ child: GestureDetector(
|
|
|
|
|
+ onTap: () {
|
|
|
|
|
+ _cancelAndRestartTimer();
|
|
|
|
|
+ },
|
|
|
|
|
+ child: AbsorbPointer(
|
|
|
|
|
+ absorbing: _hideStuff,
|
|
|
|
|
+ child: Column(
|
|
|
|
|
+ children: <Widget>[
|
|
|
|
|
+ _buildTopBar(backgroundColor, iconColor, barHeight, buttonPadding),
|
|
|
|
|
+ _buildHitArea(),
|
|
|
|
|
+ _buildBottomBar(backgroundColor, iconColor, barHeight),
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
);
|
|
);
|