fix alignment for dot grid background + add clipping post canvas paint

This commit is contained in:
2025-07-26 19:12:24 +00:00
parent 7ad54a92cb
commit 5a986eceb9
9 changed files with 94 additions and 39 deletions
+5 -3
View File
@@ -22,9 +22,11 @@ class _FpsState extends State<Fps> {
double elapsedSeconds = (elapsedMicroseconds - _lastFrameTime) * 1e-6;
if (elapsedSeconds != 0) {
_lastFrameTime = elapsedMicroseconds;
setState(() {
_frameRate = '${(1.0 / elapsedSeconds).toStringAsFixed(2)} fps';
});
if (mounted) {
setState(() {
_frameRate = '${(1.0 / elapsedSeconds).toStringAsFixed(2)} fps';
});
}
}
// redraw if mounted
if (mounted) {