Init repo

This commit is contained in:
PartyDonut 2024-09-15 14:12:28 +02:00
commit 764b6034e3
566 changed files with 212335 additions and 0 deletions

View file

@ -0,0 +1,28 @@
import 'package:flutter/material.dart';
class DisableFocus extends StatelessWidget {
final Widget child;
final bool canRequestFocus;
final bool skipTraversal;
final bool descendantsAreFocusable;
final bool descendantsAreTraversable;
const DisableFocus({
required this.child,
super.key,
this.canRequestFocus = false,
this.skipTraversal = true,
this.descendantsAreFocusable = false,
this.descendantsAreTraversable = false,
});
@override
Widget build(BuildContext context) {
return Focus(
canRequestFocus: canRequestFocus,
skipTraversal: skipTraversal,
descendantsAreFocusable: descendantsAreFocusable,
descendantsAreTraversable: descendantsAreTraversable,
child: child,
);
}
}