File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,8 +244,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
244244 width: MediaQuery .of (context).size.width,
245245 height: 94 ,
246246 // width: 1000,
247- child: SensorWidget (
248- settingsRepository: settingsRepository),
247+ child: const SensorWidget (),
249248 ),
250249 ),
251250 ],
Original file line number Diff line number Diff line change @@ -5,11 +5,8 @@ import 'package:qs_ds_app/widgets/building_blocks/half_sensor_bar_widget.dart';
55class SensorWidget extends StatelessWidget {
66 const SensorWidget ({
77 Key ? key,
8- required this .settingsRepository,
98 }) : super (key: key);
109
11- final SettingsRepository settingsRepository;
12-
1310 @override
1411 Widget build (BuildContext context) {
1512 return Column (
@@ -35,9 +32,9 @@ class SensorWidget extends StatelessWidget {
3532 SizedBox (
3633 width: 80 ,
3734 child: Text (
38- (double .tryParse (settingsRepository .rpm.value) ?? 0.0 ) <
35+ (double .tryParse (SettingsRepository () .rpm.value) ?? 0.0 ) <
3936 100000
40- ? (double .tryParse (settingsRepository .rpm.value) ?? 0.0 )
37+ ? (double .tryParse (SettingsRepository () .rpm.value) ?? 0.0 )
4138 .toStringAsFixed (0 )
4239 : '0' ,
4340 textAlign: TextAlign .center,
@@ -52,18 +49,18 @@ class SensorWidget extends StatelessWidget {
5249 child: Row (
5350 mainAxisAlignment: MainAxisAlignment .start,
5451 crossAxisAlignment: CrossAxisAlignment .center,
55- children: [
52+ children: const [
5653 HalfSensorBarWidget (
5754 quarterTurns: - 2 ,
5855 reverse: true ,
5956 isPush: true ,
60- color: const Color (0xFF622D5D ),
57+ color: Color (0xFF622D5D ),
6158 ),
6259 HalfSensorBarWidget (
6360 quarterTurns: 0 ,
6461 reverse: false ,
6562 isPush: false ,
66- color: const Color (0xFF2D3C62 ),
63+ color: Color (0xFF2D3C62 ),
6764 ),
6865 ],
6966 ),
You can’t perform that action at this time.
0 commit comments