11import 'package:flutter/material.dart' ;
22import 'package:provider/provider.dart' ;
33import 'package:pslab/providers/oscilloscope_state_provider.dart' ;
4+ import 'package:pslab/constants.dart' ;
45
56class DataAnalysisWidget extends StatefulWidget {
67 const DataAnalysisWidget ({super .key});
@@ -50,9 +51,10 @@ class _DataAnalysisState extends State<DataAnalysisWidget> {
5051 );
5152 },
5253 ),
53- const Text (
54- 'Fourier Analysis' ,
55- style: TextStyle (
54+ Text (
55+ fourierAnalysis,
56+ style: const TextStyle (
57+ color: Colors .black,
5658 fontSize: 15 ,
5759 fontWeight: FontWeight .normal,
5860 fontStyle: FontStyle .normal,
@@ -88,6 +90,7 @@ class _DataAnalysisState extends State<DataAnalysisWidget> {
8890 border: InputBorder .none,
8991 ),
9092 textStyle: const TextStyle (
93+ color: Colors .black,
9194 fontSize: 15 ,
9295 ),
9396 onSelected: (String ? value) {
@@ -128,6 +131,7 @@ class _DataAnalysisState extends State<DataAnalysisWidget> {
128131 border: InputBorder .none,
129132 ),
130133 textStyle: const TextStyle (
134+ color: Colors .black,
131135 fontSize: 15 ,
132136 ),
133137 onSelected: (value) {
@@ -165,6 +169,7 @@ class _DataAnalysisState extends State<DataAnalysisWidget> {
165169 border: InputBorder .none,
166170 ),
167171 textStyle: const TextStyle (
172+ color: Colors .black,
168173 fontSize: 15 ,
169174 ),
170175 onSelected: (value) {
@@ -189,9 +194,9 @@ class _DataAnalysisState extends State<DataAnalysisWidget> {
189194 child: Container (
190195 padding: const EdgeInsets .symmetric (horizontal: 2 ),
191196 decoration: const BoxDecoration (color: Colors .white),
192- child: const Text (
193- 'Data Analysis' ,
194- style: TextStyle (
197+ child: Text (
198+ dataAnalysis ,
199+ style: const TextStyle (
195200 color: Color (0xFFC72C2C ),
196201 fontStyle: FontStyle .normal,
197202 fontWeight: FontWeight .bold,
@@ -241,6 +246,7 @@ class _DataAnalysisState extends State<DataAnalysisWidget> {
241246 border: InputBorder .none,
242247 ),
243248 textStyle: const TextStyle (
249+ color: Colors .black,
244250 fontSize: 15 ,
245251 ),
246252 onSelected: (value) => {
@@ -262,9 +268,10 @@ class _DataAnalysisState extends State<DataAnalysisWidget> {
262268 children: [
263269 Expanded (
264270 child: SliderTheme (
265- data: const SliderThemeData (
271+ data: SliderThemeData (
272+ inactiveTrackColor: Colors .blueGrey[100 ],
266273 trackHeight: 1 ,
267- thumbShape: RoundSliderThumbShape (
274+ thumbShape: const RoundSliderThumbShape (
268275 enabledThumbRadius: 6 ),
269276 ),
270277 child: Slider (
@@ -304,6 +311,7 @@ class _DataAnalysisState extends State<DataAnalysisWidget> {
304311 border: InputBorder .none,
305312 ),
306313 style: const TextStyle (
314+ color: Colors .black,
307315 fontSize: 14 ,
308316 fontWeight: FontWeight .normal,
309317 fontStyle: FontStyle .normal,
@@ -343,9 +351,10 @@ class _DataAnalysisState extends State<DataAnalysisWidget> {
343351 children: [
344352 Expanded (
345353 child: SliderTheme (
346- data: const SliderThemeData (
354+ data: SliderThemeData (
355+ inactiveTrackColor: Colors .blueGrey[100 ],
347356 trackHeight: 1 ,
348- thumbShape: RoundSliderThumbShape (
357+ thumbShape: const RoundSliderThumbShape (
349358 enabledThumbRadius: 6 ),
350359 ),
351360 child: Slider (
@@ -403,6 +412,7 @@ class _DataAnalysisState extends State<DataAnalysisWidget> {
403412 : '${oscilloscopeStateProvider .xOffsets [oscilloscopeStateProvider .selectedChannelOffset ]!.toStringAsFixed (2 )} ms' ,
404413 ),
405414 style: const TextStyle (
415+ color: Colors .black,
406416 fontSize: 14 ,
407417 fontWeight: FontWeight .normal,
408418 fontStyle: FontStyle .normal,
@@ -456,9 +466,9 @@ class _DataAnalysisState extends State<DataAnalysisWidget> {
456466 child: Container (
457467 padding: const EdgeInsets .symmetric (horizontal: 2 ),
458468 decoration: const BoxDecoration (color: Colors .white),
459- child: const Text (
460- 'Offsets' ,
461- style: TextStyle (
469+ child: Text (
470+ offsets ,
471+ style: const TextStyle (
462472 color: Color (0xFFC72C2C ),
463473 fontStyle: FontStyle .normal,
464474 fontWeight: FontWeight .bold,
0 commit comments