fix debug draw colors
This commit is contained in:
@@ -18,7 +18,7 @@ class _Debug extends StatelessWidget {
|
|||||||
bottom: -60,
|
bottom: -60,
|
||||||
child: Text(
|
child: Text(
|
||||||
'ID: ${id.substring(0, 4)}\nGS:(${gs.dx.toInt()},${gs.dy.toInt()})\nSS:(${ss.dx.toInt()},${ss.dy.toInt()})',
|
'ID: ${id.substring(0, 4)}\nGS:(${gs.dx.toInt()},${gs.dy.toInt()})\nSS:(${ss.dx.toInt()},${ss.dy.toInt()})',
|
||||||
style: monospaceStyle,
|
style: monospaceStyle(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ class _LazyCanvasState extends State<LazyCanvas> with TickerProviderStateMixin<L
|
|||||||
left: 16,
|
left: 16,
|
||||||
child: Text(
|
child: Text(
|
||||||
'Offset: ${widget.controller.offset.coord()}\nScale: ${widget.controller.scale.toStringAsFixed(1)}',
|
'Offset: ${widget.controller.offset.coord()}\nScale: ${widget.controller.scale.toStringAsFixed(1)}',
|
||||||
style: monospaceStyle,
|
style: monospaceStyle(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
final TextStyle monospaceStyle = TextStyle(
|
TextStyle monospaceStyle(BuildContext context) => TextStyle(
|
||||||
color: Colors.black,
|
color: Theme.of(context).colorScheme.onSurface,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontFamily: 'monospace',
|
fontFamily: 'monospace',
|
||||||
|
|||||||
Reference in New Issue
Block a user