Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit 3c3792e

Browse files
committed
bug fixes
1 parent e517027 commit 3c3792e

8 files changed

Lines changed: 14 additions & 15 deletions

File tree

assets/lang/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@
344344
"favorites.rename": "Rename",
345345
"favorites.delete": "Delete",
346346
"favorites.opening_file": "Opening file: {filename}",
347+
"favorites.loading_files": "Loading files",
347348
"search.favorites": "Search favorites...",
348349
"shared_files.title": "Shared files",
349350
"shared_files.not_logged_in": "Not logged in. Please login again.",

assets/lang/pl.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@
344344
"favorites.rename": "Zmień nazwę",
345345
"favorites.delete": "Usuń",
346346
"favorites.opening_file": "Otwieranie pliku: {filename}",
347+
"favotites.loading_files": "Ładowanie ulubionych plików",
347348
"search.favorites": "Szukaj w ulubionych...",
348349
"shared_files.title": "Udostępnione pliki",
349350
"shared_files.not_logged_in": "Nie zalogowano. Zaloguj się ponownie.",

lib/pages/favorites_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ class _FavoritesPageState extends State<FavoritesPage> {
642642
Icons.sort_by_alpha,
643643
size: 18,
644644
color: _sortBy == 'name'
645-
? Theme.of(context).colorScheme.primary
645+
? Color(0xFF764ba2)
646646
: Colors.grey.shade600,
647647
),
648648
const SizedBox(width: 12),

lib/pages/files_page.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,12 @@ class _FilesPageState extends State<FilesPage> with TickerProviderStateMixin {
664664
Container(
665665
padding: const EdgeInsets.all(8),
666666
decoration: BoxDecoration(
667-
color: Theme.of(context).colorScheme.primary.withValues(alpha: 0.1),
667+
color: Color(0xFF764ba2).withValues(alpha: 0.1),
668668
borderRadius: BorderRadius.circular(12),
669669
),
670670
child: Icon(
671671
Icons.check_circle,
672-
color: Theme.of(context).colorScheme.primary,
672+
color: Color(0xFF764ba2),
673673
size: 24,
674674
),
675675
),
@@ -1831,7 +1831,7 @@ class _FilesPageState extends State<FilesPage> with TickerProviderStateMixin {
18311831
color: isActive
18321832
? Colors.blue.withValues(alpha: 0.15)
18331833
: isSelected
1834-
? Theme.of(context).colorScheme.primary.withValues(alpha: 0.1)
1834+
? Color(0xFF764ba2).withValues(alpha: 0.1)
18351835
: null,
18361836
borderRadius: BorderRadius.circular(8),
18371837
border: isActive
@@ -1882,7 +1882,7 @@ class _FilesPageState extends State<FilesPage> with TickerProviderStateMixin {
18821882
},
18831883
visualDensity: VisualDensity.compact,
18841884
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
1885-
activeColor: Theme.of(context).colorScheme.primary,
1885+
activeColor: Color(0xFF764ba2),
18861886
),
18871887
),
18881888
if (FileUtils.isImage(file.name))
@@ -2263,7 +2263,7 @@ class _FilesPageState extends State<FilesPage> with TickerProviderStateMixin {
22632263
},
22642264
visualDensity: VisualDensity.compact,
22652265
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
2266-
activeColor: Theme.of(context).colorScheme.primary,
2266+
activeColor: Color(0xFF764ba2),
22672267
),
22682268
),
22692269
Container(
@@ -2596,7 +2596,7 @@ class _FilesPageState extends State<FilesPage> with TickerProviderStateMixin {
25962596
color: isActive
25972597
? Colors.blue.withValues(alpha: 0.15)
25982598
: isSelected
2599-
? Theme.of(context).colorScheme.primary.withValues(alpha: 0.1)
2599+
? Color(0xFF764ba2).withValues(alpha: 0.1)
26002600
: null,
26012601
borderRadius: BorderRadius.circular(8),
26022602
border: isActive
@@ -2710,7 +2710,7 @@ class _FilesPageState extends State<FilesPage> with TickerProviderStateMixin {
27102710
},
27112711
visualDensity: VisualDensity.compact,
27122712
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
2713-
activeColor: Theme.of(context).colorScheme.primary,
2713+
activeColor: Color(0xFF764ba2),
27142714
),
27152715
PopupMenuButton<String>(
27162716
onSelected: (value) {

lib/pages/forgot_password_page.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ class _ForgotPasswordPageState extends State<ForgotPasswordPage> {
5050
),
5151
);
5252

53-
// Automatycznie pokaż formularz do wprowadzania tokenu
5453
setState(() {
5554
_sentToEmail = _emailController.text;
5655
_showTokenInput = true;
@@ -112,7 +111,6 @@ class _ForgotPasswordPageState extends State<ForgotPasswordPage> {
112111
if (response.statusCode == 200) {
113112
final data = jsonDecode(response.body);
114113
if (data['valid'] == true) {
115-
// Przejdź do strony resetowania hasła z tokenem
116114
Navigator.pushNamed(context, '/reset-password', arguments: _tokenController.text);
117115
} else {
118116
ScaffoldMessenger.of(context).showSnackBar(

lib/pages/login_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ class _LoginPageState extends State<LoginPage> with TickerProviderStateMixin {
106106
final username = data['username'];
107107
final email = data['email'];
108108

109-
// Zapisz token, username i email
110109
await TokenService.saveToken(token);
111110
await TokenService.saveUsername(username);
112111
await TokenService.saveEmail(email);

lib/pages/my_shared_files_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,15 +949,15 @@ class _MySharedFilesPageState extends State<MySharedFilesPage> {
949949
Icons.person,
950950
size: 18,
951951
color: _sortBy == 'shared_with'
952-
? Theme.of(context).colorScheme.primary
952+
? Color(0xFF764ba2)
953953
: Colors.grey.shade600,
954954
),
955955
const SizedBox(width: 12),
956956
Text(
957957
'files.sort_sharer'.tr(),
958958
style: TextStyle(
959959
color: _sortBy == 'shared_with'
960-
? Theme.of(context).colorScheme.primary
960+
? Color(0xFF764ba2)
961961
: Colors.grey.shade700,
962962
fontWeight: _sortBy == 'shared_with'
963963
? FontWeight.w600

lib/utils/custom_widgets.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ class CustomAppBar extends StatelessWidget implements PreferredSizeWidget {
524524
title: Text(title),
525525
actions: actions,
526526
leading: leading,
527-
backgroundColor: backgroundColor ?? Theme.of(context).colorScheme.primary,
527+
backgroundColor: backgroundColor ?? Color(0xFF764ba2),
528528
foregroundColor: foregroundColor ?? Colors.white,
529529
centerTitle: centerTitle,
530530
elevation: elevation,
@@ -661,7 +661,7 @@ class FileItemCard extends StatelessWidget {
661661
margin: const EdgeInsets.only(bottom: 8.0),
662662
color:
663663
isSelected
664-
? Theme.of(context).colorScheme.primary.withValues(alpha: 0.1)
664+
?Color(0xFF764ba2).withValues(alpha: 0.1)
665665
: null,
666666
child: GestureDetector(
667667
onTap: onTap,

0 commit comments

Comments
 (0)