Email templates

This commit is contained in:
Hillel Coren 2018-08-13 09:12:26 -07:00
parent 33cbaacf7c
commit 0aaf3aa6df
3 changed files with 74 additions and 57 deletions

View File

@ -23,5 +23,7 @@
<orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK" /> <orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Flutter for Android" level="project" /> <orderEntry type="library" name="Flutter for Android" level="project" />
<orderEntry type="library" name="Dart SDK" level="project" />
<orderEntry type="library" name="Dart Packages" level="project" />
</component> </component>
</module> </module>

View File

@ -43,8 +43,7 @@ class _EmailInvoiceViewState extends State<EmailInvoiceView> {
padding: const EdgeInsets.all(16.0), padding: const EdgeInsets.all(16.0),
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Expanded( DropdownButtonHideUnderline(
child: DropdownButtonHideUnderline(
child: DropdownButton<String>( child: DropdownButton<String>(
value: selectedTemplate, value: selectedTemplate,
onChanged: (value) { onChanged: (value) {
@ -59,7 +58,6 @@ class _EmailInvoiceViewState extends State<EmailInvoiceView> {
selectedTemplate = localization.initialEmail; selectedTemplate = localization.initialEmail;
emailSubject = company.emailSubjectInvoice; emailSubject = company.emailSubjectInvoice;
emailBody = company.emailBodyInvoice; emailBody = company.emailBodyInvoice;
}); });
}, },
items: [ items: [
@ -82,6 +80,8 @@ class _EmailInvoiceViewState extends State<EmailInvoiceView> {
], ],
), ),
), ),
Expanded(
child: Container(),
), ),
SizedBox( SizedBox(
width: 10.0, width: 10.0,
@ -89,21 +89,36 @@ class _EmailInvoiceViewState extends State<EmailInvoiceView> {
ElevatedButton( ElevatedButton(
label: localization.send, label: localization.send,
color: Colors.orange, color: Colors.orange,
onPressed: () { onPressed: () {},
},
) )
], ],
), ),
), ),
SingleChildScrollView( ListView(
child: Container( shrinkWrap: true,
children: <Widget>[
Container(
color: Colors.white,
child: Padding(
padding: const EdgeInsets.all(13.0),
child: Text(
emailSubject,
style: TextStyle(
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: 16.0,
),
),
),
),
Container(
color: Colors.white, color: Colors.white,
child: HtmlView( child: HtmlView(
//data: widget.viewModel.company.emailBodyInvoice, //data: widget.viewModel.company.emailBodyInvoice,
data: emailBody, data: emailBody,
), ),
), ),
],
), ),
], ],
); );

View File

@ -112,14 +112,14 @@ packages:
name: cli_util name: cli_util
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.3" version: "0.1.3+2"
code_builder: code_builder:
dependency: transitive dependency: transitive
description: description:
name: code_builder name: code_builder
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.1.1" version: "3.1.2"
collection: collection:
dependency: transitive dependency: transitive
description: description:
@ -154,7 +154,7 @@ packages:
name: dart_style name: dart_style
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.1" version: "1.1.3"
file: file:
dependency: transitive dependency: transitive
description: description:
@ -168,7 +168,7 @@ packages:
name: fixnum name: fixnum
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.10.7" version: "0.10.8"
flutter: flutter:
dependency: "direct main" dependency: "direct main"
description: flutter description: flutter
@ -258,7 +258,7 @@ packages:
name: graphs name: graphs
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.2" version: "0.1.2+1"
html: html:
dependency: transitive dependency: transitive
description: description:
@ -508,7 +508,7 @@ packages:
name: source_gen name: source_gen
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.8.3" version: "0.8.3+1"
source_map_stack_trace: source_map_stack_trace:
dependency: transitive dependency: transitive
description: description:
@ -550,7 +550,7 @@ packages:
name: stream_transform name: stream_transform
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.0.14" version: "0.0.14+1"
string_scanner: string_scanner:
dependency: transitive dependency: transitive
description: description:
@ -592,7 +592,7 @@ packages:
name: url_launcher name: url_launcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.2" version: "3.0.3"
utf: utf:
dependency: transitive dependency: transitive
description: description:
@ -650,5 +650,5 @@ packages:
source: hosted source: hosted
version: "2.1.15" version: "2.1.15"
sdks: sdks:
dart: ">=2.0.0-dev.62.0 <=2.0.0-dev.69.5.flutter-eab492385c" dart: ">=2.0.0-dev.65 <=2.0.0-dev.69.5.flutter-eab492385c"
flutter: ">=0.2.5 <2.0.0" flutter: ">=0.2.5 <2.0.0"