660 lines
21 KiB
Dart
660 lines
21 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'package:material_symbols_icons/symbols.dart';
|
|
import '../../services/plex_client.dart';
|
|
import '../../services/play_queue_launcher.dart';
|
|
import '../../models/plex_playlist.dart';
|
|
import '../../models/plex_metadata.dart';
|
|
import '../../utils/app_logger.dart';
|
|
import '../../utils/provider_extensions.dart';
|
|
import '../../widgets/app_icon.dart';
|
|
import '../../widgets/desktop_app_bar.dart';
|
|
import '../../focus/dpad_navigator.dart';
|
|
import '../../focus/input_mode_tracker.dart';
|
|
import '../../focus/key_event_utils.dart';
|
|
import 'playlist_item_card.dart';
|
|
import '../../i18n/strings.g.dart';
|
|
import '../../utils/dialogs.dart';
|
|
import '../../utils/snackbar_helper.dart';
|
|
import '../base_media_list_detail_screen.dart';
|
|
import '../focusable_detail_screen_mixin.dart';
|
|
import '../../mixins/grid_focus_node_mixin.dart';
|
|
|
|
/// Screen to display the contents of a playlist
|
|
class PlaylistDetailScreen extends StatefulWidget {
|
|
final PlexPlaylist playlist;
|
|
|
|
const PlaylistDetailScreen({super.key, required this.playlist});
|
|
|
|
@override
|
|
State<PlaylistDetailScreen> createState() => _PlaylistDetailScreenState();
|
|
}
|
|
|
|
class _PlaylistDetailScreenState extends BaseMediaListDetailScreen<PlaylistDetailScreen>
|
|
with
|
|
StandardItemLoader<PlaylistDetailScreen>,
|
|
GridFocusNodeMixin<PlaylistDetailScreen>,
|
|
FocusableDetailScreenMixin<PlaylistDetailScreen> {
|
|
@override
|
|
dynamic get mediaItem => widget.playlist;
|
|
|
|
@override
|
|
String get title => widget.playlist.title;
|
|
|
|
@override
|
|
String get emptyMessage => t.playlists.emptyPlaylist;
|
|
|
|
@override
|
|
IconData get emptyIcon => Symbols.playlist_play_rounded;
|
|
|
|
@override
|
|
bool get hasItems => items.isNotEmpty;
|
|
|
|
@override
|
|
int get appBarButtonCount {
|
|
int count = 0;
|
|
if (items.isNotEmpty) count += 2; // play + shuffle
|
|
if (!widget.playlist.smart) count += 1; // delete
|
|
return count;
|
|
}
|
|
|
|
@override
|
|
List<AppBarButtonConfig> getAppBarButtons() {
|
|
final buttons = <AppBarButtonConfig>[];
|
|
if (items.isNotEmpty) {
|
|
buttons.add(AppBarButtonConfig(icon: Symbols.play_arrow_rounded, tooltip: t.discover.play, onPressed: playItems));
|
|
buttons.add(
|
|
AppBarButtonConfig(icon: Symbols.shuffle_rounded, tooltip: t.common.shuffle, onPressed: shufflePlayItems),
|
|
);
|
|
}
|
|
if (!widget.playlist.smart) {
|
|
buttons.add(
|
|
AppBarButtonConfig(
|
|
icon: Symbols.delete_rounded,
|
|
tooltip: t.playlists.delete,
|
|
onPressed: _deletePlaylist,
|
|
color: Colors.red,
|
|
),
|
|
);
|
|
}
|
|
return buttons;
|
|
}
|
|
|
|
// Focus management for regular (non-smart) reorderable lists
|
|
final FocusNode _listFocusNode = FocusNode(debugLabel: 'playlist_list');
|
|
|
|
// Navigation state for regular (non-smart) playlists
|
|
int _focusedIndex = 0;
|
|
int _focusedColumn = 0; // 0=content, 1=drag handle, 2=remove button
|
|
|
|
// Move mode state
|
|
int? _movingIndex;
|
|
int? _originalIndex;
|
|
List<PlexMetadata>? _originalOrder;
|
|
|
|
// Estimated item height for scroll-into-view (card + vertical margins)
|
|
static const double _estimatedItemHeight = 114.0;
|
|
|
|
@override
|
|
void dispose() {
|
|
_listFocusNode.dispose();
|
|
disposeFocusResources();
|
|
super.dispose();
|
|
}
|
|
|
|
@override
|
|
Future<List<PlexMetadata>> fetchItems() async {
|
|
return await client.getPlaylist(widget.playlist.ratingKey);
|
|
}
|
|
|
|
@override
|
|
Future<void> loadItems() async {
|
|
// Increment content version when loading fresh content
|
|
contentVersion++;
|
|
await super.loadItems();
|
|
|
|
// Auto-focus after load if in keyboard mode
|
|
if (mounted && items.isNotEmpty) {
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
if (!mounted) return;
|
|
if (InputModeTracker.isKeyboardMode(context)) {
|
|
setState(() {
|
|
isAppBarFocused = false;
|
|
_focusedIndex = 0;
|
|
_focusedColumn = 0;
|
|
});
|
|
if (widget.playlist.smart) {
|
|
firstItemFocusNode.requestFocus();
|
|
} else {
|
|
_listFocusNode.requestFocus();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@override
|
|
String getLoadSuccessMessage(int itemCount) {
|
|
return 'Loaded $itemCount items for playlist: ${widget.playlist.title}';
|
|
}
|
|
|
|
/// Navigate from app bar down to content - overridden to handle both grid and list
|
|
@override
|
|
void navigateToGrid() {
|
|
if (!hasItems) return;
|
|
|
|
if (widget.playlist.smart) {
|
|
super.navigateToGrid();
|
|
} else {
|
|
setState(() {
|
|
isAppBarFocused = false;
|
|
});
|
|
_listFocusNode.requestFocus();
|
|
}
|
|
}
|
|
|
|
/// Get the correct PlexClient for this playlist's server
|
|
PlexClient _getClientForPlaylist() {
|
|
return context.getClientForServer(widget.playlist.serverId!);
|
|
}
|
|
|
|
Future<void> _deletePlaylist() async {
|
|
final confirmed = await showDeleteConfirmation(
|
|
context,
|
|
title: t.playlists.deleteConfirm,
|
|
message: t.playlists.deleteMessage(name: widget.playlist.title),
|
|
);
|
|
|
|
if (confirmed == true && mounted) {
|
|
final success = await client.deletePlaylist(widget.playlist.ratingKey);
|
|
|
|
if (mounted) {
|
|
if (success) {
|
|
showSuccessSnackBar(context, t.playlists.deleted);
|
|
Navigator.pop(context); // Return to playlists screen
|
|
} else {
|
|
showErrorSnackBar(context, t.playlists.errorDeleting);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Future<void> _onReorder(int oldIndex, int newIndex) async {
|
|
// Adjust newIndex if moving down in the list
|
|
if (newIndex > oldIndex) {
|
|
newIndex--;
|
|
}
|
|
|
|
// Can't reorder if indices are the same
|
|
if (oldIndex == newIndex) return;
|
|
|
|
final movedItem = items[oldIndex];
|
|
|
|
// Check if item has playlistItemID (required for reordering)
|
|
if (movedItem.playlistItemID == null) {
|
|
appLogger.e('Cannot reorder: item missing playlistItemID');
|
|
if (mounted) {
|
|
showErrorSnackBar(context, t.playlists.errorReordering);
|
|
}
|
|
return;
|
|
}
|
|
|
|
// Determine the "after" item ID
|
|
// If moving to position 0, afterPlaylistItemId should be 0 (move to top)
|
|
// Otherwise, use the playlistItemID of the item before the new position
|
|
final int afterPlaylistItemId;
|
|
if (newIndex == 0) {
|
|
afterPlaylistItemId = 0; // Move to top
|
|
} else {
|
|
final afterItem = items[newIndex - 1];
|
|
if (afterItem.playlistItemID == null) {
|
|
appLogger.e('Cannot reorder: after item missing playlistItemID');
|
|
if (mounted) {
|
|
showErrorSnackBar(context, t.playlists.errorReordering);
|
|
}
|
|
return;
|
|
}
|
|
afterPlaylistItemId = afterItem.playlistItemID!;
|
|
}
|
|
|
|
appLogger.d('Reordering item from $oldIndex to $newIndex (after ID: $afterPlaylistItemId)');
|
|
|
|
// Optimistically update UI
|
|
setState(() {
|
|
final item = items.removeAt(oldIndex);
|
|
items.insert(newIndex, item);
|
|
});
|
|
|
|
// Call API to persist the change
|
|
final success = await client.movePlaylistItem(
|
|
playlistId: widget.playlist.ratingKey,
|
|
playlistItemId: movedItem.playlistItemID!,
|
|
afterPlaylistItemId: afterPlaylistItemId,
|
|
);
|
|
|
|
if (!success) {
|
|
// Revert on failure
|
|
appLogger.e('Failed to reorder playlist item, reverting UI');
|
|
if (mounted) {
|
|
setState(() {
|
|
final item = items.removeAt(newIndex);
|
|
items.insert(oldIndex, item);
|
|
});
|
|
|
|
showErrorSnackBar(context, t.playlists.errorReordering);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// Persist a move that was already done in the UI (during move mode).
|
|
/// The item is already at newIndex in the items list.
|
|
Future<void> _persistMoveToServer(int originalIndex, int newIndex) async {
|
|
// Item is already at newIndex in the list
|
|
final movedItem = items[newIndex];
|
|
|
|
// Check if item has playlistItemID (required for reordering)
|
|
if (movedItem.playlistItemID == null) {
|
|
appLogger.e('Cannot persist move: item missing playlistItemID');
|
|
if (mounted) {
|
|
showErrorSnackBar(context, t.playlists.errorReordering);
|
|
// Revert the UI change
|
|
setState(() {
|
|
final item = items.removeAt(newIndex);
|
|
items.insert(originalIndex, item);
|
|
_focusedIndex = originalIndex;
|
|
});
|
|
}
|
|
return;
|
|
}
|
|
|
|
// Determine the "after" item ID based on where the item is now
|
|
final int afterPlaylistItemId;
|
|
if (newIndex == 0) {
|
|
afterPlaylistItemId = 0; // Move to top
|
|
} else {
|
|
final afterItem = items[newIndex - 1];
|
|
if (afterItem.playlistItemID == null) {
|
|
appLogger.e('Cannot persist move: after item missing playlistItemID');
|
|
if (mounted) {
|
|
showErrorSnackBar(context, t.playlists.errorReordering);
|
|
// Revert the UI change
|
|
setState(() {
|
|
final item = items.removeAt(newIndex);
|
|
items.insert(originalIndex, item);
|
|
_focusedIndex = originalIndex;
|
|
});
|
|
}
|
|
return;
|
|
}
|
|
afterPlaylistItemId = afterItem.playlistItemID!;
|
|
}
|
|
|
|
appLogger.d('Persisting move from $originalIndex to $newIndex (after ID: $afterPlaylistItemId)');
|
|
|
|
// Call API to persist the change (UI is already updated)
|
|
final success = await client.movePlaylistItem(
|
|
playlistId: widget.playlist.ratingKey,
|
|
playlistItemId: movedItem.playlistItemID!,
|
|
afterPlaylistItemId: afterPlaylistItemId,
|
|
);
|
|
|
|
if (!success) {
|
|
// Revert on failure
|
|
appLogger.e('Failed to persist move, reverting UI');
|
|
if (mounted) {
|
|
setState(() {
|
|
final item = items.removeAt(newIndex);
|
|
items.insert(originalIndex, item);
|
|
_focusedIndex = originalIndex;
|
|
});
|
|
showErrorSnackBar(context, t.playlists.errorReordering);
|
|
}
|
|
}
|
|
}
|
|
|
|
Future<void> _removeItem(int index) async {
|
|
final item = items[index];
|
|
|
|
// Check if item has playlistItemID (required for removal)
|
|
if (item.playlistItemID == null) {
|
|
appLogger.e('Cannot remove: item missing playlistItemID');
|
|
if (mounted) {
|
|
showErrorSnackBar(context, t.playlists.errorRemoving);
|
|
}
|
|
return;
|
|
}
|
|
|
|
appLogger.d('Removing item ${item.title} (playlistItemID: ${item.playlistItemID}) from playlist');
|
|
|
|
// Optimistically update UI
|
|
setState(() {
|
|
items.removeAt(index);
|
|
});
|
|
|
|
// Call API to persist the change
|
|
final success = await client.removeFromPlaylist(
|
|
playlistId: widget.playlist.ratingKey,
|
|
playlistItemId: item.playlistItemID.toString(),
|
|
);
|
|
|
|
if (mounted) {
|
|
if (success) {
|
|
showSuccessSnackBar(context, t.playlists.itemRemoved);
|
|
} else {
|
|
// Revert on failure
|
|
appLogger.e('Failed to remove playlist item, reverting UI');
|
|
setState(() {
|
|
items.insert(index, item);
|
|
});
|
|
|
|
showErrorSnackBar(context, t.playlists.errorRemoving);
|
|
}
|
|
}
|
|
}
|
|
|
|
Future<void> _playFromItem(int index) async {
|
|
if (items.isEmpty || index < 0 || index >= items.length) return;
|
|
|
|
final plexClient = _getClientForPlaylist();
|
|
final selectedItem = items[index];
|
|
|
|
final launcher = PlayQueueLauncher(
|
|
context: context,
|
|
client: plexClient,
|
|
serverId: widget.playlist.serverId,
|
|
serverName: widget.playlist.serverName,
|
|
);
|
|
|
|
await launcher.launchFromPlaylistItem(
|
|
playlist: widget.playlist,
|
|
selectedItem: selectedItem,
|
|
showLoadingIndicator: true,
|
|
);
|
|
}
|
|
|
|
/// Ensure the focused item is visible in the list using scroll arithmetic.
|
|
/// Uses estimated item height instead of per-item GlobalKeys.
|
|
void _ensureFocusedVisible() {
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
if (!mounted || !scrollController.hasClients) return;
|
|
final targetOffset = _focusedIndex * _estimatedItemHeight;
|
|
final viewportHeight = scrollController.position.viewportDimension;
|
|
final currentOffset = scrollController.offset;
|
|
|
|
// Check if the item is outside the visible area (with some padding)
|
|
if (targetOffset < currentOffset || targetOffset > currentOffset + viewportHeight - _estimatedItemHeight) {
|
|
// Scroll so the item sits ~25% from the top of the viewport
|
|
final scrollTo = (targetOffset - viewportHeight * 0.25).clamp(
|
|
scrollController.position.minScrollExtent,
|
|
scrollController.position.maxScrollExtent,
|
|
);
|
|
scrollController.animateTo(scrollTo, duration: const Duration(milliseconds: 200), curve: Curves.easeOut);
|
|
}
|
|
});
|
|
}
|
|
|
|
/// Handle key events for list navigation
|
|
KeyEventResult _handleListKeyEvent(FocusNode node, KeyEvent event) {
|
|
final key = event.logicalKey;
|
|
|
|
final backResult = handleBackKeyAction(event, () {
|
|
if (_movingIndex != null) {
|
|
// Cancel move mode, set flag to prevent PopScope exit
|
|
backHandledByKeyEvent = true;
|
|
_cancelMoveMode();
|
|
} else {
|
|
// Navigate to app bar on BACK, set flag to prevent PopScope exit
|
|
handleBackFromContent();
|
|
}
|
|
});
|
|
if (backResult != KeyEventResult.ignored) {
|
|
return backResult;
|
|
}
|
|
|
|
if (event is! KeyDownEvent) return KeyEventResult.ignored;
|
|
|
|
if (_movingIndex != null) {
|
|
// Move mode - arrows reorder the item
|
|
if (key.isUpKey && _movingIndex! > 0) {
|
|
setState(() {
|
|
final item = items.removeAt(_movingIndex!);
|
|
items.insert(_movingIndex! - 1, item);
|
|
_movingIndex = _movingIndex! - 1;
|
|
_focusedIndex = _movingIndex!;
|
|
});
|
|
_ensureFocusedVisible();
|
|
return KeyEventResult.handled;
|
|
}
|
|
if (key.isDownKey && _movingIndex! < items.length - 1) {
|
|
setState(() {
|
|
final item = items.removeAt(_movingIndex!);
|
|
items.insert(_movingIndex! + 1, item);
|
|
_movingIndex = _movingIndex! + 1;
|
|
_focusedIndex = _movingIndex!;
|
|
});
|
|
_ensureFocusedVisible();
|
|
return KeyEventResult.handled;
|
|
}
|
|
if (key.isSelectKey) {
|
|
// Confirm move - persist to server (UI is already updated during move)
|
|
final oldIndex = _originalIndex!;
|
|
final newIndex = _movingIndex!;
|
|
setState(() {
|
|
_movingIndex = null;
|
|
_originalIndex = null;
|
|
_originalOrder = null;
|
|
// Keep focus on the moved item at its new position
|
|
_focusedIndex = newIndex;
|
|
_focusedColumn = 0;
|
|
});
|
|
// Persist the change via API (list is already in correct order)
|
|
_persistMoveToServer(oldIndex, newIndex);
|
|
return KeyEventResult.handled;
|
|
}
|
|
} else {
|
|
// Navigation mode
|
|
if (key.isUpKey) {
|
|
if (_focusedIndex > 0) {
|
|
setState(() {
|
|
_focusedIndex--;
|
|
_focusedColumn = 0; // Reset to row when changing rows
|
|
});
|
|
_ensureFocusedVisible();
|
|
} else {
|
|
// First item - navigate to app bar
|
|
navigateToAppBar();
|
|
}
|
|
return KeyEventResult.handled;
|
|
}
|
|
if (key.isDownKey && _focusedIndex < items.length - 1) {
|
|
setState(() {
|
|
_focusedIndex++;
|
|
_focusedColumn = 0; // Reset to row when changing rows
|
|
});
|
|
_ensureFocusedVisible();
|
|
return KeyEventResult.handled;
|
|
}
|
|
if (key.isLeftKey) {
|
|
// Navigate left within columns
|
|
if (_focusedColumn == 0 && widget.playlist.smart == false) {
|
|
// Go to drag handle (column 1)
|
|
setState(() => _focusedColumn = 1);
|
|
return KeyEventResult.handled;
|
|
} else if (_focusedColumn == 2) {
|
|
// Go back to content
|
|
setState(() => _focusedColumn = 0);
|
|
return KeyEventResult.handled;
|
|
}
|
|
}
|
|
if (key.isRightKey) {
|
|
// Navigate right within columns
|
|
if (_focusedColumn == 0) {
|
|
// Go to remove button (column 2)
|
|
setState(() => _focusedColumn = 2);
|
|
return KeyEventResult.handled;
|
|
} else if (_focusedColumn == 1) {
|
|
// Go to content from drag handle
|
|
setState(() => _focusedColumn = 0);
|
|
return KeyEventResult.handled;
|
|
}
|
|
}
|
|
if (key.isSelectKey) {
|
|
if (_focusedColumn == 0) {
|
|
// Play from this item
|
|
_playFromItem(_focusedIndex);
|
|
} else if (_focusedColumn == 1 && !widget.playlist.smart) {
|
|
// Enter move mode
|
|
setState(() {
|
|
_movingIndex = _focusedIndex;
|
|
_originalIndex = _focusedIndex;
|
|
_originalOrder = List.from(items);
|
|
});
|
|
} else if (_focusedColumn == 2) {
|
|
// Remove item
|
|
_removeItem(_focusedIndex);
|
|
}
|
|
return KeyEventResult.handled;
|
|
}
|
|
}
|
|
|
|
return KeyEventResult.ignored;
|
|
}
|
|
|
|
/// Cancel move mode if active, returns true if cancelled
|
|
bool _cancelMoveMode() {
|
|
if (_movingIndex != null) {
|
|
setState(() {
|
|
if (_originalOrder != null) {
|
|
items = List.from(_originalOrder!);
|
|
}
|
|
_focusedIndex = _originalIndex ?? 0;
|
|
_movingIndex = null;
|
|
_originalIndex = null;
|
|
_originalOrder = null;
|
|
});
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/// Handle back navigation for PopScope - extends mixin with move mode support
|
|
bool _handleBackNavigation() {
|
|
// If BACK was already handled by a key event, don't pop
|
|
if (backHandledByKeyEvent) {
|
|
backHandledByKeyEvent = false;
|
|
return false;
|
|
}
|
|
|
|
// If in move mode, cancel move instead of navigating
|
|
if (_movingIndex != null) {
|
|
_cancelMoveMode();
|
|
return false;
|
|
}
|
|
|
|
return handleBackNavigation();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final isKeyboardMode = InputModeTracker.isKeyboardMode(context);
|
|
|
|
// For regular playlists, wrap the scroll view with the Focus widget
|
|
// (Focus is a RenderObject widget and cannot directly wrap a sliver)
|
|
final needsListFocus = !widget.playlist.smart && items.isNotEmpty;
|
|
|
|
Widget scrollView = CustomScrollView(
|
|
controller: scrollController,
|
|
slivers: [
|
|
CustomAppBar(
|
|
title: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(widget.playlist.title, style: const TextStyle(fontSize: 16)),
|
|
if (widget.playlist.smart)
|
|
Row(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
AppIcon(Symbols.auto_awesome_rounded, fill: 1, size: 12, color: Colors.blue[300]),
|
|
const SizedBox(width: 4),
|
|
Text(
|
|
t.playlists.smartPlaylist,
|
|
style: TextStyle(fontSize: 11, color: Colors.blue[300], fontWeight: FontWeight.normal),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
actions: buildFocusableAppBarActions(),
|
|
),
|
|
...buildStateSlivers(),
|
|
if (items.isNotEmpty)
|
|
if (widget.playlist.smart)
|
|
// Smart playlists: Use focusable grid view (cannot be reordered)
|
|
buildFocusableGrid(items: items, onRefresh: updateItem)
|
|
else
|
|
// Regular playlists: Use sliver reorderable list
|
|
_buildReorderableList(isKeyboardMode),
|
|
],
|
|
);
|
|
|
|
if (needsListFocus) {
|
|
scrollView = Focus(
|
|
autofocus: isKeyboardMode && !isAppBarFocused,
|
|
focusNode: _listFocusNode,
|
|
onKeyEvent: _handleListKeyEvent,
|
|
onFocusChange: (hasFocus) {
|
|
if (hasFocus && mounted) {
|
|
setState(() {
|
|
isAppBarFocused = false;
|
|
});
|
|
}
|
|
},
|
|
child: scrollView,
|
|
);
|
|
}
|
|
|
|
return PopScope(
|
|
canPop: false,
|
|
onPopInvokedWithResult: (didPop, result) {
|
|
if (BackKeyCoordinator.consumeIfHandled()) return;
|
|
if (didPop) return;
|
|
final shouldPop = _handleBackNavigation();
|
|
if (shouldPop && mounted) {
|
|
Navigator.pop(context);
|
|
}
|
|
},
|
|
child: Scaffold(body: scrollView),
|
|
);
|
|
}
|
|
|
|
/// Build a reorderable list for regular playlists with focus support
|
|
Widget _buildReorderableList(bool isKeyboardMode) {
|
|
return SliverReorderableList(
|
|
onReorder: _onReorder,
|
|
itemCount: items.length,
|
|
itemBuilder: (context, index) {
|
|
final item = items[index];
|
|
// Check keyboard mode directly to ensure we get latest value
|
|
final inKeyboardMode = InputModeTracker.isKeyboardMode(context);
|
|
final isFocused = inKeyboardMode && index == _focusedIndex && !isAppBarFocused;
|
|
final isMoving = index == _movingIndex;
|
|
|
|
return RepaintBoundary(
|
|
key: ValueKey(item.playlistItemID ?? item.ratingKey),
|
|
child: PlaylistItemCard(
|
|
item: item,
|
|
index: index,
|
|
onRemove: () => _removeItem(index),
|
|
onTap: () => _playFromItem(index),
|
|
onRefresh: updateItem,
|
|
canReorder: !widget.playlist.smart,
|
|
isFocused: isFocused,
|
|
focusedColumn: isFocused ? _focusedColumn : null,
|
|
isMoving: isMoving,
|
|
),
|
|
);
|
|
},
|
|
);
|
|
}
|
|
}
|