-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetPartTwo.dart
84 lines (77 loc) · 2.09 KB
/
setPartTwo.dart
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
77
78
79
80
81
82
83
84
import 'dart:ui';
import 'package:flutter/cupertino.dart';
class set_part_two{
final FontStyle fontStyle;
final double fontSize1;
final double fontSize2;
final double width;
final double height;
final String measurementString;
final String sensorUnit;
final String setpoint;
set_part_two({
@required this.fontStyle,
@required this.fontSize1,
@required this.fontSize2,
@required this.measurementString,
@required this.sensorUnit,
@required this.setpoint,
this.width,
this.height
});
Widget part2(BuildContext){
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: [
Align(
alignment: Alignment.topLeft,
child: Text(
"Ultima rilevazione: ",
style: TextStyle(
fontWeight: FontWeight.bold,
fontStyle: this.fontStyle,
fontSize: this.fontSize1,
),
),
),
Align(
alignment: Alignment.topLeft,
child: Text(
this.measurementString + " °" + this.sensorUnit,
style: TextStyle(
//fontWeight: FontWeight.bold,
fontStyle: this.fontStyle,
fontSize: this.fontSize2,
),
),
),
Container(
height: this.height
),
Align(
alignment: Alignment.topLeft,
child: Text(
"Setpoint: ",
style: TextStyle(
fontWeight: FontWeight.bold,
fontStyle: this.fontStyle,
fontSize: this.fontSize1,
),
),
),
Align(
alignment: Alignment.topLeft,
child: Text(
this.setpoint + " °" + this.sensorUnit,
style: TextStyle(
//fontWeight: FontWeight.bold,
fontStyle: this.fontStyle,
fontSize: this.fontSize2,
),
),
),
],
);
}
}