Contact us
This commit is contained in:
parent
254415bcdb
commit
2792a70aaa
|
|
@ -268,6 +268,7 @@ class InvoiceNinjaAppState extends State<InvoiceNinjaApp> {
|
|||
)
|
||||
: ThemeData(fontFamily: fontFamily).copyWith(
|
||||
accentColor: accentColor,
|
||||
textSelectionColor: accentColor,
|
||||
primaryColor: const Color(0xFF117cc1),
|
||||
primaryColorLight: const Color(0xFF5dabf4),
|
||||
primaryColorDark: const Color(0xFF0D5D91),
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ class ContactUsDialog extends StatefulWidget {
|
|||
|
||||
class _ContactUsDialogState extends State<ContactUsDialog> {
|
||||
String _message = '';
|
||||
bool _includeLogs = false;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
@ -581,11 +582,19 @@ class _ContactUsDialogState extends State<ContactUsDialog> {
|
|||
decoration: InputDecoration(
|
||||
labelText: localization.message,
|
||||
),
|
||||
minLines: 6,
|
||||
maxLines: 6,
|
||||
minLines: 4,
|
||||
maxLines: 4,
|
||||
onChanged: (value) => _message = value,
|
||||
),
|
||||
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 {
|
||||
static final Map<String, Map<String, String>> _localizedValues = {
|
||||
'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.',
|
||||
'message': 'Message',
|
||||
'from': 'From',
|
||||
|
|
@ -15922,6 +15923,12 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
String get yourMessageHasBeenReceived =>
|
||||
_localizedValues[localeCode]['your_message_has_been_received'];
|
||||
|
||||
String get includeRecentErrors =>
|
||||
_localizedValues[localeCode]['include_recent_errors'];
|
||||
|
||||
|
||||
|
||||
|
||||
String lookup(String key) {
|
||||
final lookupKey = toSnakeCase(key);
|
||||
return _localizedValues[localeCode][lookupKey] ??
|
||||
|
|
|
|||
Loading…
Reference in New Issue