28 lines
682 B
Dart
28 lines
682 B
Dart
part of 'controller.dart';
|
|
|
|
class _Debug extends StatelessWidget {
|
|
final CanvasChildId id;
|
|
final Offset gs, ss;
|
|
final Widget child;
|
|
|
|
const _Debug({required this.id, required this.gs, required this.ss, required this.child, required super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Stack(
|
|
clipBehavior: Clip.none,
|
|
children: [
|
|
child,
|
|
Positioned(
|
|
left: 0,
|
|
bottom: -60,
|
|
child: Text(
|
|
'ID: ${id.substring(0, 4)}\nGS:(${gs.dx.toInt()},${gs.dy.toInt()})\nSS:(${ss.dx.toInt()},${ss.dy.toInt()})',
|
|
style: monospaceStyle(context),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|