@@ -43,67 +43,82 @@ class _EmailInvoiceViewState extends State<EmailInvoiceView> {
43
43
padding: const EdgeInsets .all (16.0 ),
44
44
child: Row (
45
45
children: < Widget > [
46
- Expanded (
47
- child: DropdownButtonHideUnderline (
48
- child: DropdownButton <String >(
49
- value: selectedTemplate,
50
- onChanged: (value) {
51
- setState (() {
52
- final localization = AppLocalization .of (context);
53
- final company = widget.viewModel.company;
54
- selectedTemplate = value;
55
-
56
- switch (value) {
57
- //case const :
58
- }
59
- selectedTemplate = localization.initialEmail;
60
- emailSubject = company.emailSubjectInvoice;
61
- emailBody = company.emailBodyInvoice;
46
+ DropdownButtonHideUnderline (
47
+ child: DropdownButton <String >(
48
+ value: selectedTemplate,
49
+ onChanged: (value) {
50
+ setState (() {
51
+ final localization = AppLocalization .of (context);
52
+ final company = widget.viewModel.company;
53
+ selectedTemplate = value;
62
54
63
- });
64
- },
65
- items: [
66
- DropdownMenuItem <String >(
67
- child: Text (localization.initialEmail),
68
- value: localization.initialEmail,
69
- ),
70
- DropdownMenuItem <String >(
71
- child: Text (localization.firstReminder),
72
- value: localization.firstReminder,
73
- ),
74
- DropdownMenuItem <String >(
75
- child: Text (localization.secondReminder),
76
- value: localization.secondReminder,
77
- ),
78
- DropdownMenuItem <String >(
79
- child: Text (localization.thirdReminder),
80
- value: localization.thirdReminder,
81
- ),
82
- ],
83
- ),
55
+ switch (value) {
56
+ //case const :
57
+ }
58
+ selectedTemplate = localization.initialEmail;
59
+ emailSubject = company.emailSubjectInvoice;
60
+ emailBody = company.emailBodyInvoice;
61
+ });
62
+ },
63
+ items: [
64
+ DropdownMenuItem <String >(
65
+ child: Text (localization.initialEmail),
66
+ value: localization.initialEmail,
67
+ ),
68
+ DropdownMenuItem <String >(
69
+ child: Text (localization.firstReminder),
70
+ value: localization.firstReminder,
71
+ ),
72
+ DropdownMenuItem <String >(
73
+ child: Text (localization.secondReminder),
74
+ value: localization.secondReminder,
75
+ ),
76
+ DropdownMenuItem <String >(
77
+ child: Text (localization.thirdReminder),
78
+ value: localization.thirdReminder,
79
+ ),
80
+ ],
84
81
),
85
82
),
83
+ Expanded (
84
+ child: Container (),
85
+ ),
86
86
SizedBox (
87
87
width: 10.0 ,
88
88
),
89
89
ElevatedButton (
90
90
label: localization.send,
91
91
color: Colors .orange,
92
- onPressed: () {
93
-
94
- },
92
+ onPressed: () {},
95
93
)
96
94
],
97
95
),
98
96
),
99
- SingleChildScrollView (
100
- child: Container (
101
- color: Colors .white,
102
- child: HtmlView (
103
- //data: widget.viewModel.company.emailBodyInvoice,
104
- data: emailBody,
97
+ ListView (
98
+ shrinkWrap: true ,
99
+ children: < Widget > [
100
+ Container (
101
+ color: Colors .white,
102
+ child: Padding (
103
+ padding: const EdgeInsets .all (13.0 ),
104
+ child: Text (
105
+ emailSubject,
106
+ style: TextStyle (
107
+ color: Colors .black,
108
+ fontWeight: FontWeight .bold,
109
+ fontSize: 16.0 ,
110
+ ),
111
+ ),
112
+ ),
105
113
),
106
- ),
114
+ Container (
115
+ color: Colors .white,
116
+ child: HtmlView (
117
+ //data: widget.viewModel.company.emailBodyInvoice,
118
+ data: emailBody,
119
+ ),
120
+ ),
121
+ ],
107
122
),
108
123
],
109
124
);
0 commit comments