mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 15:08:18 -07:00
feat: Implement custom keyboard for Android TV (#523)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
721fc28060
commit
75c2f958b4
22 changed files with 927 additions and 157 deletions
|
|
@ -37,11 +37,11 @@ class FladderTheme {
|
|||
static ThemeData theme(ColorScheme? colorScheme, DynamicSchemeVariant dynamicSchemeVariant) {
|
||||
final ColorScheme? scheme = generateDynamicColourSchemes(colorScheme, dynamicSchemeVariant);
|
||||
|
||||
final buttonState = WidgetStateProperty.resolveWith(
|
||||
final buttonSides = WidgetStateProperty.resolveWith(
|
||||
(states) {
|
||||
return BorderSide(
|
||||
width: 3,
|
||||
color: scheme?.onPrimaryContainer.withValues(alpha: states.contains(WidgetState.focused) ? 0.9 : 0.0) ??
|
||||
color: scheme?.onPrimaryContainer.withValues(alpha: states.contains(WidgetState.focused) ? 1.0 : 0.0) ??
|
||||
Colors.transparent,
|
||||
);
|
||||
},
|
||||
|
|
@ -152,31 +152,31 @@ class FladderTheme {
|
|||
iconButtonTheme: IconButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
shape: WidgetStatePropertyAll(smallShape),
|
||||
side: buttonState,
|
||||
side: buttonSides,
|
||||
),
|
||||
),
|
||||
elevatedButtonTheme: ElevatedButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
shape: WidgetStatePropertyAll(smallShape),
|
||||
side: buttonState,
|
||||
side: buttonSides,
|
||||
),
|
||||
),
|
||||
filledButtonTheme: FilledButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
shape: WidgetStatePropertyAll(smallShape),
|
||||
side: buttonState,
|
||||
side: buttonSides,
|
||||
),
|
||||
),
|
||||
outlinedButtonTheme: OutlinedButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
shape: WidgetStatePropertyAll(smallShape),
|
||||
side: buttonState,
|
||||
side: buttonSides,
|
||||
),
|
||||
),
|
||||
textButtonTheme: TextButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
shape: WidgetStatePropertyAll(smallShape),
|
||||
side: buttonState,
|
||||
side: buttonSides,
|
||||
),
|
||||
),
|
||||
textTheme: textTheme.copyWith(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue