refactor canvas painter

This commit is contained in:
2025-07-27 01:41:17 +00:00
parent 2366102cce
commit e5f33c6212
7 changed files with 12 additions and 18 deletions
+1 -3
View File
@@ -65,9 +65,7 @@ class _CachingTestAppState extends State<CachingTestApp> {
style: TextStyle(fontSize: 12),
),
),
Expanded(
child: LazyCanvas(controller: controller, canvasBackground: const DotGridBackround()),
),
Expanded(child: LazyCanvas(controller: controller)),
],
),
floatingActionButton: Column(
+1 -3
View File
@@ -116,9 +116,7 @@ class _DynamicWidgetExampleState extends State<DynamicWidgetExample> {
],
),
),
Expanded(
child: LazyCanvas(controller: controller, canvasBackground: const DotGridBackround()),
),
Expanded(child: LazyCanvas(controller: controller)),
],
),
);
+1 -1
View File
@@ -78,7 +78,7 @@ class _SimpleExampleState extends State<SimpleExample> {
),
body: Stack(
children: [
LazyCanvas(controller: controller, canvasBackground: SingleColorBackround(Colors.white)),
LazyCanvas(controller: controller),
Positioned(bottom: 64, left: 16, child: Fps()),
],
),