mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
feat: Android TV support (#503)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
7ab8c015b9
commit
c299492d6d
168 changed files with 12019 additions and 3073 deletions
|
|
@ -6,6 +6,9 @@ import 'package:fladder/theme.dart';
|
|||
|
||||
class FlatButton extends ConsumerWidget {
|
||||
final Widget? child;
|
||||
final bool autoFocus;
|
||||
final FocusNode? focusNode;
|
||||
final Function(bool value)? onFocusChange;
|
||||
final Function()? onTap;
|
||||
final Function()? onLongPress;
|
||||
final Function()? onDoubleTap;
|
||||
|
|
@ -17,6 +20,9 @@ class FlatButton extends ConsumerWidget {
|
|||
final Clip clipBehavior;
|
||||
const FlatButton({
|
||||
this.child,
|
||||
this.onFocusChange,
|
||||
this.focusNode,
|
||||
this.autoFocus = false,
|
||||
this.onTap,
|
||||
this.onLongPress,
|
||||
this.onDoubleTap,
|
||||
|
|
@ -47,8 +53,11 @@ class FlatButton extends ConsumerWidget {
|
|||
borderRadius: borderRadiusGeometry ?? FladderTheme.defaultShape.borderRadius,
|
||||
elevation: 0,
|
||||
child: InkWell(
|
||||
autofocus: autoFocus,
|
||||
focusNode: focusNode,
|
||||
onTap: onTap,
|
||||
onLongPress: onLongPress,
|
||||
onFocusChange: onFocusChange,
|
||||
onDoubleTap: onDoubleTap,
|
||||
onSecondaryTapDown: onSecondaryTapDown,
|
||||
borderRadius: borderRadiusGeometry ?? BorderRadius.circular(10),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue