This commit is contained in:
Leon Bösche
2025-12-16 22:42:34 +01:00
parent 7293086425
commit 513f5ff9a9

View File

@@ -185,9 +185,7 @@ class _FileExplorerState extends State<FileExplorer> {
curve: Curves.easeInOut, curve: Curves.easeInOut,
child: Padding( child: Padding(
padding: const EdgeInsets.only(top: 2), padding: const EdgeInsets.only(top: 2),
child: Row( child: IconButton(
children: [
IconButton(
icon: Icon( icon: Icon(
_isSearching ? Icons.close : Icons.search, _isSearching ? Icons.close : Icons.search,
color: AppTheme.accentColor, color: AppTheme.accentColor,
@@ -215,9 +213,14 @@ class _FileExplorerState extends State<FileExplorer> {
} }
}, },
), ),
const SizedBox(width: 800), ),
),
BlocBuilder<FileBrowserBloc, FileBrowserState>( Positioned(
right: 0,
top: 0,
child: Padding(
padding: const EdgeInsets.only(top: 2),
child: BlocBuilder<FileBrowserBloc, FileBrowserState>(
builder: (context, state) { builder: (context, state) {
String currentSort = 'name'; String currentSort = 'name';
bool isAscending = true; bool isAscending = true;
@@ -291,10 +294,7 @@ class _FileExplorerState extends State<FileExplorer> {
highlightColor: Colors.transparent, highlightColor: Colors.transparent,
onPressed: () { onPressed: () {
context.read<FileBrowserBloc>().add( context.read<FileBrowserBloc>().add(
ApplySort( ApplySort(currentSort, isAscending: !isAscending),
currentSort,
isAscending: !isAscending,
),
); );
}, },
), ),
@@ -302,8 +302,6 @@ class _FileExplorerState extends State<FileExplorer> {
); );
}, },
), ),
],
),
), ),
), ),
if (_showField) if (_showField)