Contact us
This commit is contained in:
parent
254415bcdb
commit
2792a70aaa
|
|
@ -268,6 +268,7 @@ class InvoiceNinjaAppState extends State<InvoiceNinjaApp> {
|
||||||
)
|
)
|
||||||
: ThemeData(fontFamily: fontFamily).copyWith(
|
: ThemeData(fontFamily: fontFamily).copyWith(
|
||||||
accentColor: accentColor,
|
accentColor: accentColor,
|
||||||
|
textSelectionColor: accentColor,
|
||||||
primaryColor: const Color(0xFF117cc1),
|
primaryColor: const Color(0xFF117cc1),
|
||||||
primaryColorLight: const Color(0xFF5dabf4),
|
primaryColorLight: const Color(0xFF5dabf4),
|
||||||
primaryColorDark: const Color(0xFF0D5D91),
|
primaryColorDark: const Color(0xFF0D5D91),
|
||||||
|
|
|
||||||
|
|
@ -525,6 +525,7 @@ class ContactUsDialog extends StatefulWidget {
|
||||||
|
|
||||||
class _ContactUsDialogState extends State<ContactUsDialog> {
|
class _ContactUsDialogState extends State<ContactUsDialog> {
|
||||||
String _message = '';
|
String _message = '';
|
||||||
|
bool _includeLogs = false;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|
@ -581,11 +582,19 @@ class _ContactUsDialogState extends State<ContactUsDialog> {
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: localization.message,
|
labelText: localization.message,
|
||||||
),
|
),
|
||||||
minLines: 6,
|
minLines: 4,
|
||||||
maxLines: 6,
|
maxLines: 4,
|
||||||
onChanged: (value) => _message = value,
|
onChanged: (value) => _message = value,
|
||||||
),
|
),
|
||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
|
SwitchListTile(
|
||||||
|
value: _includeLogs,
|
||||||
|
onChanged: (value) {
|
||||||
|
setState(() => _includeLogs = value);
|
||||||
|
},
|
||||||
|
title: Text(localization.includeRecentErrors),
|
||||||
|
activeColor: Theme.of(context).accentColor,
|
||||||
|
),
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ abstract class LocaleCodeAware {
|
||||||
mixin LocalizationsProvider on LocaleCodeAware {
|
mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
static final Map<String, Map<String, String>> _localizedValues = {
|
static final Map<String, Map<String, String>> _localizedValues = {
|
||||||
'en': {
|
'en': {
|
||||||
|
'include_recent_errors': 'Include recent errors from the logs',
|
||||||
'your_message_has_been_received': 'We have received your message and will try to respond promptly.',
|
'your_message_has_been_received': 'We have received your message and will try to respond promptly.',
|
||||||
'message': 'Message',
|
'message': 'Message',
|
||||||
'from': 'From',
|
'from': 'From',
|
||||||
|
|
@ -15922,6 +15923,12 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
String get yourMessageHasBeenReceived =>
|
String get yourMessageHasBeenReceived =>
|
||||||
_localizedValues[localeCode]['your_message_has_been_received'];
|
_localizedValues[localeCode]['your_message_has_been_received'];
|
||||||
|
|
||||||
|
String get includeRecentErrors =>
|
||||||
|
_localizedValues[localeCode]['include_recent_errors'];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String lookup(String key) {
|
String lookup(String key) {
|
||||||
final lookupKey = toSnakeCase(key);
|
final lookupKey = toSnakeCase(key);
|
||||||
return _localizedValues[localeCode][lookupKey] ??
|
return _localizedValues[localeCode][lookupKey] ??
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue