1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
import 'package:flutter_ics_homescreen/export.dart';
class FMPlayer extends StatefulWidget {
const FMPlayer({super.key});
@override
State<FMPlayer> createState() => _FMPlayerState();
}
class _FMPlayerState extends State<FMPlayer> {
String selectedNav = "Standard";
List<String> navItems = [
"Standard",
"HD",
];
String tableName = "Presets";
List<PlayListModel> playList = [
PlayListModel(songName: "93.1 The Mountain", albumName: "93.1"),
PlayListModel(songName: "Mix 94.1", albumName: "94.1 MHz"),
PlayListModel(songName: "96.3 KKLZ", albumName: "96.3 MHz"),
];
String selectedPlayListSongName = "93.1 The Mountain";
@override
Widget build(BuildContext context) {
double fmSignalHeight = 460;
double fmSignalWidth = 460;
return Container(
padding: const EdgeInsets.only(left: 7, right: 7),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
SegmentedButtons(
navItems: navItems,
selectedNav: selectedNav,
),
const SizedBox(
height: 32,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.asset(
"assets/AlbumArtFM.png",
width: fmSignalWidth,
height: fmSignalHeight,
)
],
),
const SizedBox(
height: 40,
),
Column(
children: [
const MediaControls(
songName: "87.9",
songLengthStart: "87.9 MHz",
songLengthStop: "87.9 MHz",
type: "fm",
),
const SizedBox(
height: 70,
),
PlayListTable(
playList: playList,
selectedPlayListSongName: selectedPlayListSongName,
tableName: tableName,
type: "fm",
),
],
)
],
),
);
}
}
|