finish day 1

This commit is contained in:
Leon Bösche
2025-12-16 22:29:31 +01:00
parent 8b5a5f9b7e
commit 7293086425
3 changed files with 22 additions and 0 deletions

View File

@@ -43,12 +43,16 @@ class _DocumentViewerState extends State<DocumentViewer> {
actions: [
IconButton(
icon: const Icon(Icons.refresh),
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
onPressed: () {
_viewerBloc.add(ReloadDocument());
},
),
IconButton(
icon: const Icon(Icons.close),
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
onPressed: () {
_viewerBloc.add(CloseDocument());
Navigator.of(context).pop();

View File

@@ -192,6 +192,8 @@ class _FileExplorerState extends State<FileExplorer> {
_isSearching ? Icons.close : Icons.search,
color: AppTheme.accentColor,
),
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
onPressed: () {
if (_isSearching) {
setState(() {
@@ -285,6 +287,8 @@ class _FileExplorerState extends State<FileExplorer> {
: Icons.arrow_downward,
color: AppTheme.accentColor,
),
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
onPressed: () {
context.read<FileBrowserBloc>().add(
ApplySort(
@@ -390,6 +394,8 @@ class _FileExplorerState extends State<FileExplorer> {
Icons.arrow_back,
color: AppTheme.primaryText,
),
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
onPressed: () {
context.read<FileBrowserBloc>().add(
LoadDirectory(orgId: 'org1', path: '/'),
@@ -683,6 +689,8 @@ class _FileExplorerState extends State<FileExplorer> {
Icons.edit,
color: AppTheme.secondaryText,
),
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
onPressed: () => _editFile(file),
),
IconButton(
@@ -690,6 +698,8 @@ class _FileExplorerState extends State<FileExplorer> {
Icons.download,
color: AppTheme.secondaryText,
),
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
onPressed: () => _downloadFile(file),
),
IconButton(
@@ -697,6 +707,8 @@ class _FileExplorerState extends State<FileExplorer> {
Icons.send,
color: AppTheme.secondaryText,
),
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
onPressed: () => _sendFile(file),
),
],
@@ -718,6 +730,8 @@ class _FileExplorerState extends State<FileExplorer> {
Icons.chevron_left,
color: AppTheme.primaryText,
),
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
onPressed: state.currentPage > 1
? () {
context.read<FileBrowserBloc>().add(
@@ -738,6 +752,8 @@ class _FileExplorerState extends State<FileExplorer> {
Icons.chevron_right,
color: AppTheme.primaryText,
),
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
onPressed: state.currentPage < state.totalPages
? () {
context.read<FileBrowserBloc>().add(

View File

@@ -30,6 +30,7 @@ class AppTheme {
brightness: Brightness.light,
primaryColor: accentColor,
scaffoldBackgroundColor: primaryBackground,
splashFactory: NoSplash.splashFactory,
);
static ThemeData darkTheme = ThemeData(
@@ -37,5 +38,6 @@ class AppTheme {
brightness: Brightness.dark,
primaryColor: accentColor,
scaffoldBackgroundColor: primaryBackground,
splashFactory: NoSplash.splashFactory,
);
}