-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
a: desktopRunning on desktopRunning on desktopframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
The following code should paint a rotated blue scare with a "p" on it, but for some reason the rotation is not applied. As soon as the "onPointerHover" is commented out, the box is drawn as expected.
import 'package:flutter/material.dart';
import 'package:flutter/gestures.dart';
void main() => runApp(MyApp1());
class MyApp1 extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Center(
child: Transform.rotate(
angle: 1.57,
child: Listener(
onPointerHover: (PointerHoverEvent event) { }, // <-- comment this out to make it work
child: Container(
color: Colors.blue,
height: 100,
width: 100,
child: Text('p'),
),
),
),
),
);
}
}Suspicion: The extra AnnotatedRegionLayer that the onPointerHover inserts may be screwing with the transform...
Metadata
Metadata
Assignees
Labels
a: desktopRunning on desktopRunning on desktopframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.