This commit is contained in:
2025-02-27 18:08:08 +02:00
commit 499020323e
48 changed files with 3036 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import 'package:flutter/material.dart';
class VsyncProvider extends StatefulWidget {
//SECTION - Widget Arguments
final Widget child;
//!SECTION
//
const VsyncProvider({
super.key,
required this.child,
});
//--
static VsyncProviderState of(BuildContext context) {
final VsyncProviderState? result = context.findAncestorStateOfType<VsyncProviderState>();
if (result != null) {
return result;
}
throw FlutterError('No VsyncProvider ancestor found in the widget tree!');
}
//--
@override
State<VsyncProvider> createState() => VsyncProviderState();
}
class VsyncProviderState extends State<VsyncProvider> with TickerProviderStateMixin {
@override
Widget build(BuildContext context) {
//SECTION - Build Return
return widget.child;
//!SECTION
}
}