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
|
||||
const String kClientVersion = '5.0.97';
|
||||
const String kClientVersion = '5.0.98';
|
||||
const String kMinServerVersion = '5.0.4';
|
||||
|
||||
const String kAppName = 'Invoice Ninja';
|
||||
|
|
|
|||
|
|
@ -20,6 +20,15 @@ class ReviewApp extends StatefulWidget {
|
|||
class _ReviewAppState extends State<ReviewApp> {
|
||||
bool _likesTheApp;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
|
||||
if (isApple()) {
|
||||
_likesTheApp = true;
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final localization = AppLocalization.of(context);
|
||||
|
|
@ -41,7 +50,9 @@ class _ReviewAppState extends State<ReviewApp> {
|
|||
children: [
|
||||
SizedBox(height: 12),
|
||||
Text(
|
||||
_likesTheApp == null
|
||||
isApple()
|
||||
? localization.wouldYouRateTheApp
|
||||
: _likesTheApp == null
|
||||
? localization.areYouEnjoyingTheApp
|
||||
: _likesTheApp == true
|
||||
? localization.wouldYouRateIt
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
static final Map<String, Map<String, String>> _localizedValues = {
|
||||
'en': {
|
||||
// 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_help': 'Include deleted records in reports',
|
||||
'due_on': 'Due On',
|
||||
|
|
@ -87438,6 +87439,10 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
_localizedValues[localeCode]['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
|
||||
|
||||
String lookup(String key) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
name: invoiceninja_flutter
|
||||
description: Client for Invoice Ninja
|
||||
version: 5.0.97+97
|
||||
version: 5.0.98+98
|
||||
homepage: https://invoiceninja.com
|
||||
documentation: https://invoiceninja.github.io
|
||||
publish_to: none
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
name: invoiceninja_flutter
|
||||
description: Client for Invoice Ninja
|
||||
version: 5.0.97+97
|
||||
version: 5.0.98+98
|
||||
homepage: https://invoiceninja.com
|
||||
documentation: https://invoiceninja.github.io
|
||||
publish_to: none
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
name: invoiceninja_flutter
|
||||
description: Client for Invoice Ninja
|
||||
version: 5.0.97+97
|
||||
version: 5.0.98+98
|
||||
homepage: https://invoiceninja.com
|
||||
documentation: https://invoiceninja.github.io
|
||||
publish_to: none
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
name: invoiceninja
|
||||
version: '5.0.97'
|
||||
version: '5.0.98'
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue