mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-15 10:15:58 -07:00
chore: Improved custom keyboard logic
This commit is contained in:
parent
07972ea5ee
commit
117d873683
10 changed files with 203 additions and 202 deletions
|
|
@ -141,7 +141,6 @@ class FocusButtonState extends State<FocusButton> {
|
|||
cursor: SystemMouseCursors.click,
|
||||
onEnter: (event) => onHover.value = true,
|
||||
onExit: (event) => onHover.value = false,
|
||||
hitTestBehavior: HitTestBehavior.translucent,
|
||||
child: Focus(
|
||||
focusNode: focusNode,
|
||||
autofocus: widget.autoFocus,
|
||||
|
|
@ -160,7 +159,13 @@ class FocusButtonState extends State<FocusButton> {
|
|||
onTap: widget.onTap,
|
||||
onSecondaryTapDown: widget.onSecondaryTapDown,
|
||||
onLongPress: widget.onLongPress,
|
||||
child: widget.child,
|
||||
child: Container(
|
||||
clipBehavior: Clip.hardEdge,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: widget.borderRadius ?? FladderTheme.smallShape.borderRadius,
|
||||
),
|
||||
child: widget.child,
|
||||
),
|
||||
),
|
||||
Positioned.fill(
|
||||
child: ValueListenableBuilder(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue