@@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
2
2
import 'package:iptv_player/database/database.dart' ;
3
3
import 'package:iptv_player/models/playlist_content_model.dart' ;
4
4
import 'package:iptv_player/models/watch_history.dart' ;
5
- import 'package:iptv_player/services/app_state.dart' ;
6
5
import 'package:iptv_player/views/widgets/player_widget.dart' ;
7
6
8
7
class EpisodeScreen extends StatelessWidget {
@@ -28,46 +27,28 @@ class EpisodeScreen extends StatelessWidget {
28
27
child: Column (
29
28
crossAxisAlignment: CrossAxisAlignment .stretch,
30
29
children: [
31
- // PlayerWidget scroll edilebilir alandan çıkarıldı
32
- PlayerWidget (
33
- contentItem: contentItem,
34
- // watchHistory: watchHistory,
35
- ),
36
-
37
- // Expanded widget ile kalan alanı kaplıyor ve scroll edilebilir
30
+ PlayerWidget (contentItem: contentItem),
38
31
Expanded (
39
32
child: SingleChildScrollView (
40
- child: Container (
41
- decoration: BoxDecoration (
42
- gradient: LinearGradient (
43
- begin: Alignment .topCenter,
44
- end: Alignment .bottomCenter,
45
- colors: [
46
- Theme .of (context).scaffoldBackgroundColor.withOpacity (0.8 ),
47
- Theme .of (context).scaffoldBackgroundColor,
48
- ],
49
- ),
50
- ),
51
- child: Padding (
52
- padding: const EdgeInsets .all (20.0 ),
53
- child: Column (
54
- crossAxisAlignment: CrossAxisAlignment .start,
55
- children: [
56
- // Kanal Başlığı
57
- Row (
58
- children: [
59
- Expanded (
60
- child: SelectableText (
61
- contentItem.name,
62
- style: Theme .of (context).textTheme.headlineSmall
63
- ? .copyWith (fontWeight: FontWeight .bold),
64
- ),
33
+ child: Padding (
34
+ padding: const EdgeInsets .all (20.0 ),
35
+ child: Column (
36
+ crossAxisAlignment: CrossAxisAlignment .start,
37
+ children: [
38
+ // Kanal Başlığı
39
+ Row (
40
+ children: [
41
+ Expanded (
42
+ child: SelectableText (
43
+ contentItem.name,
44
+ style: Theme .of (context).textTheme.headlineSmall
45
+ ? .copyWith (fontWeight: FontWeight .bold),
65
46
),
66
- ] ,
67
- ) ,
68
- const SizedBox (height : 24 ),
69
- ] ,
70
- ) ,
47
+ ) ,
48
+ ] ,
49
+ ),
50
+ const SizedBox (height : 24 ) ,
51
+ ] ,
71
52
),
72
53
),
73
54
),
@@ -168,4 +149,4 @@ class EpisodeScreen extends StatelessWidget {
168
149
// Şu an için sabit bir değer döndürüyorum
169
150
return 'HD' ;
170
151
}
171
- }
152
+ }
0 commit comments