mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Small changes
This commit is contained in:
parent
29b1c2e633
commit
a8b2f9053e
2 changed files with 15 additions and 14 deletions
|
|
@ -84,7 +84,10 @@ class ChapterRow extends ConsumerWidget {
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(5),
|
padding: const EdgeInsets.all(5),
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).colorScheme.surfaceContainer,
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: FladderTheme.smallShape.borderRadius,
|
||||||
|
color: Theme.of(context).colorScheme.surfaceContainer.withValues(alpha: 0.75),
|
||||||
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(5),
|
padding: const EdgeInsets.all(5),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|
@ -99,9 +102,9 @@ class ChapterRow extends ConsumerWidget {
|
||||||
],
|
],
|
||||||
focusedOverlays: [
|
focusedOverlays: [
|
||||||
if (AdaptiveLayout.inputDeviceOf(context) == InputDevice.pointer)
|
if (AdaptiveLayout.inputDeviceOf(context) == InputDevice.pointer)
|
||||||
ExcludeFocus(
|
Align(
|
||||||
child: Align(
|
|
||||||
alignment: Alignment.bottomRight,
|
alignment: Alignment.bottomRight,
|
||||||
|
child: ExcludeFocus(
|
||||||
child: PopupMenuButton(
|
child: PopupMenuButton(
|
||||||
tooltip: context.localized.options,
|
tooltip: context.localized.options,
|
||||||
icon: const Icon(
|
icon: const Icon(
|
||||||
|
|
|
||||||
|
|
@ -179,21 +179,19 @@ class FocusButtonState extends State<FocusButton> {
|
||||||
onTap: widget.onTap,
|
onTap: widget.onTap,
|
||||||
onSecondaryTapDown: widget.onSecondaryTapDown,
|
onSecondaryTapDown: widget.onSecondaryTapDown,
|
||||||
onLongPress: widget.onLongPress,
|
onLongPress: widget.onLongPress,
|
||||||
child: Stack(
|
child: widget.child,
|
||||||
children: [
|
|
||||||
if (widget.child != null) widget.child!,
|
|
||||||
],
|
|
||||||
),
|
|
||||||
overlays: [
|
overlays: [
|
||||||
if (widget.overlays.isNotEmpty) ...widget.overlays,
|
if (widget.overlays.isNotEmpty) ...widget.overlays,
|
||||||
if (widget.focusedOverlays.isNotEmpty)
|
if (widget.focusedOverlays.isNotEmpty)
|
||||||
AnimatedOpacity(
|
Positioned.fill(
|
||||||
|
child: AnimatedOpacity(
|
||||||
opacity: value ? 1 : 0,
|
opacity: value ? 1 : 0,
|
||||||
duration: const Duration(milliseconds: 250),
|
duration: const Duration(milliseconds: 250),
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [...widget.focusedOverlays],
|
children: [...widget.focusedOverlays],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue