windows working (SLOW) with pixel buffer copy

This commit is contained in:
Nick Fisher
2023-09-25 21:53:42 +10:00
parent d93b3f6aa8
commit 744fedb8d9
14 changed files with 196 additions and 114 deletions

View File

@@ -7,6 +7,8 @@ import 'package:polyvox_filament/filament_gesture_detector.dart';
import 'package:polyvox_filament/filament_widget.dart';
import 'package:polyvox_filament/animations/animation_builder.dart';
import 'package:path_provider/path_provider.dart';
void main() {
runApp(const MyApp());
}
@@ -24,7 +26,7 @@ class _MyAppState extends State<MyApp> with SingleTickerProviderStateMixin {
return MaterialApp(
// showPerformanceOverlay: true,
color: Colors.white,
home: Scaffold(backgroundColor: Colors.lightBlue, body: ExampleWidget()));
home: Scaffold(backgroundColor: Colors.white, body: ExampleWidget()));
}
}
@@ -56,9 +58,12 @@ class _ExampleWidgetState extends State<ExampleWidget> {
@override
void initState() {
getApplicationSupportDirectory().then((dir) {
print(dir);
});
super.initState();
}
Widget _item(void Function() onTap, String text) {
return GestureDetector(
onTap: onTap,
@@ -247,7 +252,7 @@ class _ExampleWidgetState extends State<ExampleWidget> {
return Stack(children: [
Positioned(
bottom: 100,
height:400, width:400,
height:768, width:1024,
child: FilamentGestureDetector(
showControlOverlay: true,
controller: _filamentController,