fix debug draw colors
This commit is contained in:
@@ -18,7 +18,7 @@ class _Debug extends StatelessWidget {
|
||||
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,
|
||||
style: monospaceStyle(context),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -94,7 +94,7 @@ class _LazyCanvasState extends State<LazyCanvas> with TickerProviderStateMixin<L
|
||||
left: 16,
|
||||
child: Text(
|
||||
'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';
|
||||
|
||||
final TextStyle monospaceStyle = TextStyle(
|
||||
color: Colors.black,
|
||||
TextStyle monospaceStyle(BuildContext context) => TextStyle(
|
||||
color: Theme.of(context).colorScheme.onSurface,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontFamily: 'monospace',
|
||||
|
||||
Reference in New Issue
Block a user