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

Commit 2d4740e

Browse files
committed
update
1 parent 51b00e9 commit 2d4740e

9 files changed

Lines changed: 245 additions & 497 deletions

lib/main.dart

Lines changed: 1 addition & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter/services.dart';
3-
import 'package:flutter/foundation.dart';
4-
import 'dart:io';
5-
// import 'package:app_links/app_links.dart'; // Tymczasowo wyłączone
63
import 'package:easy_localization/easy_localization.dart';
74
import 'pages/login_page.dart';
85
import 'pages/register_page.dart';
@@ -68,37 +65,7 @@ class _MyAppState extends State<MyApp> {
6865
await CacheService().initialize();
6966
}
7067

71-
// void _initDeepLinks() {
72-
// // Obsługa deep links gdy aplikacja jest już uruchomiona
73-
// _linkSubscription = _appLinks.uriLinkStream.listen((Uri uri) {
74-
// _handleDeepLink(uri);
75-
// }, onError: (err) {
76-
// print('Deep link error: $err');
77-
// });
78-
79-
// // Obsługa deep links gdy aplikacja jest uruchamiana
80-
// _appLinks.getInitialLink().then((String? link) {
81-
// if (link != null) {
82-
// final uri = Uri.parse(link);
83-
// _handleDeepLink(uri);
84-
// }
85-
// });
86-
// }
87-
88-
// void _handleDeepLink(Uri uri) {
89-
// if (uri.host == 'reset-password') {
90-
// final token = uri.queryParameters['token'];
91-
// if (token != null) {
92-
// Navigator.pushNamed(context, '/reset-password', arguments: token);
93-
// }
94-
// }
95-
// }
96-
97-
// @override
98-
// void dispose() {
99-
// _linkSubscription?.cancel();
100-
// super.dispose();
101-
// }
68+
10269

10370
@override
10471
Widget build(BuildContext context) {
@@ -123,7 +90,6 @@ class _MyAppState extends State<MyApp> {
12390
return LoginPage(showVerificationSuccess: isVerified);
12491
},
12592
'/register': (context) => const RegisterPage(),
126-
'/home': (context) => const MyHomePage(title: 'Flutter Demo Home Page'),
12793
'/verification': (context) {
12894
final args = ModalRoute.of(context)?.settings.arguments;
12995
final email = args is String ? args : '';
@@ -149,7 +115,6 @@ class _MyAppState extends State<MyApp> {
149115
}
150116
}
151117

152-
// Widget sprawdzający czy użytkownik jest zalogowany
153118
class SplashScreen extends StatefulWidget {
154119
const SplashScreen({super.key});
155120

@@ -165,7 +130,6 @@ class _SplashScreenState extends State<SplashScreen> {
165130
}
166131

167132
Future<void> _checkLoginStatus() async {
168-
// Krótkie opóźnienie dla lepszego UX
169133
await Future.delayed(const Duration(milliseconds: 500));
170134

171135
if (!mounted) return;
@@ -227,89 +191,3 @@ class _SplashScreenState extends State<SplashScreen> {
227191
);
228192
}
229193
}
230-
231-
class MyHomePage extends StatefulWidget {
232-
const MyHomePage({super.key, required this.title});
233-
234-
// This widget is the home page of your application. It is stateful, meaning
235-
// that it has a State object (defined below) that contains fields that affect
236-
// how it looks.
237-
238-
// This class is the configuration for the state. It holds the values (in this
239-
// case the title) provided by the parent (in this case the App widget) and
240-
// used by the build method of the State. Fields in a Widget subclass are
241-
// always marked "final".
242-
243-
final String title;
244-
245-
@override
246-
State<MyHomePage> createState() => _MyHomePageState();
247-
}
248-
249-
class _MyHomePageState extends State<MyHomePage> {
250-
int _counter = 0;
251-
252-
void _incrementCounter() {
253-
setState(() {
254-
// This call to setState tells the Flutter framework that something has
255-
// changed in this State, which causes it to rerun the build method below
256-
// so that the display can reflect the updated values. If we changed
257-
// _counter without calling setState(), then the build method would not be
258-
// called again, and so nothing would appear to happen.
259-
_counter++;
260-
});
261-
}
262-
263-
@override
264-
Widget build(BuildContext context) {
265-
// This method is rerun every time setState is called, for instance as done
266-
// by the _incrementCounter method above.
267-
//
268-
// The Flutter framework has been optimized to make rerunning build methods
269-
// fast, so that you can just rebuild anything that needs updating rather
270-
// than having to individually change instances of widgets.
271-
return Scaffold(
272-
appBar: AppBar(
273-
// TRY THIS: Try changing the color here to a specific color (to
274-
// Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
275-
// change color while the other colors stay the same.
276-
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
277-
// Here we take the value from the MyHomePage object that was created by
278-
// the App.build method, and use it to set our appbar title.
279-
title: Text(widget.title),
280-
),
281-
body: Center(
282-
// Center is a layout widget. It takes a single child and positions it
283-
// in the middle of the parent.
284-
child: Column(
285-
// Column is also a layout widget. It takes a list of children and
286-
// arranges them vertically. By default, it sizes itself to fit its
287-
// children horizontally, and tries to be as tall as its parent.
288-
//
289-
// Column has various properties to control how it sizes itself and
290-
// how it positions its children. Here we use mainAxisAlignment to
291-
// center the children vertically; the main axis here is the vertical
292-
// axis because Columns are vertical (the cross axis would be
293-
// horizontal).
294-
//
295-
// TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint"
296-
// action in the IDE, or press "p" in the console), to see the
297-
// wireframe for each widget.
298-
mainAxisAlignment: MainAxisAlignment.center,
299-
children: <Widget>[
300-
const Text('You have pushed the button this many times:'),
301-
Text(
302-
'$_counter',
303-
style: Theme.of(context).textTheme.headlineMedium,
304-
),
305-
],
306-
),
307-
),
308-
floatingActionButton: FloatingActionButton(
309-
onPressed: _incrementCounter,
310-
tooltip: 'Increment',
311-
child: const Icon(Icons.add),
312-
), // This trailing comma makes auto-formatting nicer for build methods.
313-
);
314-
}
315-
}

lib/pages/files_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,6 @@ class _FilesPageState extends State<FilesPage> with TickerProviderStateMixin {
19191919
),
19201920
)
19211921
else if (FileUtils.isTextFile(file.name))
1922-
// Podgląd pliku tekstowego
19231922
Container(
19241923
width: 48,
19251924
height: 48,

0 commit comments

Comments
 (0)