Changes for Apple
This commit is contained in:
parent
c63d8beea9
commit
374d143aa5
|
|
@ -4,7 +4,7 @@ class Constants {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO remove version once #46609 is fixed
|
// TODO remove version once #46609 is fixed
|
||||||
const String kClientVersion = '5.0.97';
|
const String kClientVersion = '5.0.98';
|
||||||
const String kMinServerVersion = '5.0.4';
|
const String kMinServerVersion = '5.0.4';
|
||||||
|
|
||||||
const String kAppName = 'Invoice Ninja';
|
const String kAppName = 'Invoice Ninja';
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,15 @@ class ReviewApp extends StatefulWidget {
|
||||||
class _ReviewAppState extends State<ReviewApp> {
|
class _ReviewAppState extends State<ReviewApp> {
|
||||||
bool _likesTheApp;
|
bool _likesTheApp;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
|
||||||
|
if (isApple()) {
|
||||||
|
_likesTheApp = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final localization = AppLocalization.of(context);
|
final localization = AppLocalization.of(context);
|
||||||
|
|
@ -41,11 +50,13 @@ class _ReviewAppState extends State<ReviewApp> {
|
||||||
children: [
|
children: [
|
||||||
SizedBox(height: 12),
|
SizedBox(height: 12),
|
||||||
Text(
|
Text(
|
||||||
_likesTheApp == null
|
isApple()
|
||||||
? localization.areYouEnjoyingTheApp
|
? localization.wouldYouRateTheApp
|
||||||
: _likesTheApp == true
|
: _likesTheApp == null
|
||||||
? localization.wouldYouRateIt
|
? localization.areYouEnjoyingTheApp
|
||||||
: localization.wouldYouTellUsMore,
|
: _likesTheApp == true
|
||||||
|
? localization.wouldYouRateIt
|
||||||
|
: localization.wouldYouTellUsMore,
|
||||||
style: Theme.of(context).textTheme.subtitle1,
|
style: Theme.of(context).textTheme.subtitle1,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
static final Map<String, Map<String, String>> _localizedValues = {
|
static final Map<String, Map<String, String>> _localizedValues = {
|
||||||
'en': {
|
'en': {
|
||||||
// STARTER: lang key - do not remove comment
|
// STARTER: lang key - do not remove comment
|
||||||
|
'would_you_rate_the_app': 'Would you like to rate the app?',
|
||||||
'include_deleted': 'Include Deleted',
|
'include_deleted': 'Include Deleted',
|
||||||
'include_deleted_help': 'Include deleted records in reports',
|
'include_deleted_help': 'Include deleted records in reports',
|
||||||
'due_on': 'Due On',
|
'due_on': 'Due On',
|
||||||
|
|
@ -87438,6 +87439,10 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
_localizedValues[localeCode]['include_deleted_help'] ??
|
_localizedValues[localeCode]['include_deleted_help'] ??
|
||||||
_localizedValues['en']['include_deleted_help'];
|
_localizedValues['en']['include_deleted_help'];
|
||||||
|
|
||||||
|
String get wouldYouRateTheApp =>
|
||||||
|
_localizedValues[localeCode]['would_you_rate_the_app'] ??
|
||||||
|
_localizedValues['en']['would_you_rate_the_app'];
|
||||||
|
|
||||||
// STARTER: lang field - do not remove comment
|
// STARTER: lang field - do not remove comment
|
||||||
|
|
||||||
String lookup(String key) {
|
String lookup(String key) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: invoiceninja_flutter
|
name: invoiceninja_flutter
|
||||||
description: Client for Invoice Ninja
|
description: Client for Invoice Ninja
|
||||||
version: 5.0.97+97
|
version: 5.0.98+98
|
||||||
homepage: https://invoiceninja.com
|
homepage: https://invoiceninja.com
|
||||||
documentation: https://invoiceninja.github.io
|
documentation: https://invoiceninja.github.io
|
||||||
publish_to: none
|
publish_to: none
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: invoiceninja_flutter
|
name: invoiceninja_flutter
|
||||||
description: Client for Invoice Ninja
|
description: Client for Invoice Ninja
|
||||||
version: 5.0.97+97
|
version: 5.0.98+98
|
||||||
homepage: https://invoiceninja.com
|
homepage: https://invoiceninja.com
|
||||||
documentation: https://invoiceninja.github.io
|
documentation: https://invoiceninja.github.io
|
||||||
publish_to: none
|
publish_to: none
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: invoiceninja_flutter
|
name: invoiceninja_flutter
|
||||||
description: Client for Invoice Ninja
|
description: Client for Invoice Ninja
|
||||||
version: 5.0.97+97
|
version: 5.0.98+98
|
||||||
homepage: https://invoiceninja.com
|
homepage: https://invoiceninja.com
|
||||||
documentation: https://invoiceninja.github.io
|
documentation: https://invoiceninja.github.io
|
||||||
publish_to: none
|
publish_to: none
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
name: invoiceninja
|
name: invoiceninja
|
||||||
version: '5.0.97'
|
version: '5.0.98'
|
||||||
summary: Create invoices, accept payments, track expenses & time-tasks
|
summary: Create invoices, accept payments, track expenses & time-tasks
|
||||||
description: "### Note: if the app fails to run using `snap run invoiceninja` it may help to run `/snap/invoiceninja/current/bin/invoiceninja` instead
|
description: "### Note: if the app fails to run using `snap run invoiceninja` it may help to run `/snap/invoiceninja/current/bin/invoiceninja` instead
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue