|
1 | 1 | import 'dart:core'; |
2 | 2 |
|
| 3 | +import 'package:pslab/l10n/app_localizations.dart'; |
| 4 | +import 'package:pslab/providers/locator.dart'; |
| 5 | + |
3 | 6 | const instrumentsScreenTitleKey = 'instruments_screen_title'; |
4 | 7 | const accelerometerScreenTitleKey = 'accelerometer_screen_title'; |
5 | 8 | const powerSourceScreenTitleKey = 'power_source_screen_title'; |
6 | 9 | const multimeterScreenTitleKey = 'multimeter_screen_title'; |
7 | 10 | const waveGeneratorScreenTitleKey = 'wave_generator_screen_title'; |
8 | 11 | const oscilloscopeScreenTitleKey = 'oscilloscope_screen_title'; |
9 | 12 |
|
| 13 | +AppLocalizations appLocalizations = getIt.get<AppLocalizations>(); |
| 14 | + |
10 | 15 | List<String> instrumentHeadings = [ |
11 | 16 | 'OSCILLOSCOPE', |
12 | 17 | 'MULTIMETER', |
@@ -63,3 +68,22 @@ List<String> instrumentIcons = [ |
63 | 68 | 'assets/icons/tile_icon_gas.png', |
64 | 69 | 'assets/icons/tile_icon_gas.png', |
65 | 70 | ]; |
| 71 | + |
| 72 | +List<String> instrumentNames = [ |
| 73 | + appLocalizations.oscilloscope.toLowerCase(), |
| 74 | + appLocalizations.multimeter.toLowerCase(), |
| 75 | + appLocalizations.logicAnalyzer.toLowerCase(), |
| 76 | + appLocalizations.sensors.toLowerCase(), |
| 77 | + appLocalizations.waveGenerator.toLowerCase(), |
| 78 | + appLocalizations.powerSource.toLowerCase(), |
| 79 | + appLocalizations.luxMeter.toLowerCase(), |
| 80 | + appLocalizations.accelerometer.toLowerCase(), |
| 81 | + appLocalizations.barometer.toLowerCase(), |
| 82 | + appLocalizations.compass.toLowerCase(), |
| 83 | + appLocalizations.gyroscope.toLowerCase(), |
| 84 | + appLocalizations.thermometer.toLowerCase(), |
| 85 | + appLocalizations.roboticArm.toLowerCase(), |
| 86 | + appLocalizations.gasSensor.toLowerCase(), |
| 87 | + appLocalizations.dustSensor.toLowerCase(), |
| 88 | + appLocalizations.soundMeter.toLowerCase() |
| 89 | +]; |
0 commit comments