mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Add download link on deprecation dialog
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import 'package:comunic/helpers/server_config_helper.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
/// Deprecation dialog
|
||||
///
|
||||
@ -16,11 +18,21 @@ class _DeprecationDialog extends StatelessWidget {
|
||||
return AlertDialog(
|
||||
title: Text(tr("Deprecated application version")),
|
||||
content: Text(tr(
|
||||
"This version of the mobile application is deprecated. You might still be able to use it, but some features will not work. We recommend you to update to the latest version of the application.")),
|
||||
"This version of the Comunic application is deprecated. You might still be able to use it, but some features may not work. We recommend you to update to the latest version of the application.")),
|
||||
actions: [
|
||||
MaterialButton(
|
||||
onPressed: () =>
|
||||
launch(ServerConfigurationHelper.config.playStoreURL),
|
||||
child: Text(tr("Go to the Play Store")),
|
||||
),
|
||||
MaterialButton(
|
||||
onPressed: () =>
|
||||
launch(ServerConfigurationHelper.config.androidDirectDownloadURL),
|
||||
child: Text(tr("Download update outside Play Store")),
|
||||
),
|
||||
MaterialButton(
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: Text(tr("OK")),
|
||||
child: Text(tr("Use the old application anyway")),
|
||||
)
|
||||
],
|
||||
);
|
||||
|
Reference in New Issue
Block a user