Direct users to sign up for Nextcloud if they don't have one

This commit is contained in:
Ming Ming 2022-09-21 20:43:08 +08:00
parent 3e6f7eaf0e
commit da27099f25
3 changed files with 10 additions and 1 deletions

View file

@ -14,3 +14,5 @@ const editPhotosUrl = "https://bit.ly/3v82oKA";
const collectionTypesUrl = "https://bit.ly/3OwSiNq";
const contributorsUrl = "https://bit.ly/3QhlQQs";
const videoPreviewUrl = "https://bit.ly/4c7cazP";
const nextcloudProviderUrl = "https://bit.ly/3xIzgL7";

View file

@ -12,9 +12,11 @@ import 'package:nc_photos/db/entity_converter.dart';
import 'package:nc_photos/entity/pref.dart';
import 'package:nc_photos/entity/pref_util.dart' as pref_util;
import 'package:nc_photos/exception_event.dart';
import 'package:nc_photos/help_utils.dart' as help_util;
import 'package:nc_photos/legacy/connect.dart' as legacy;
import 'package:nc_photos/snack_bar_manager.dart';
import 'package:nc_photos/theme.dart';
import 'package:nc_photos/url_launcher_util.dart';
import 'package:nc_photos/widget/app_intermediate_circular_progress_indicator.dart';
import 'package:nc_photos/widget/connect.dart';
import 'package:nc_photos/widget/expandable_container.dart';

View file

@ -117,7 +117,12 @@ class _BodyState extends State<_Body> {
.cancelButtonLabel),
)
else
Container(),
TextButton(
onPressed: () {
launch(help_util.nextcloudProviderUrl);
},
child: const Text("DON'T HAVE ONE?"),
),
ElevatedButton(
onPressed: () {
if (_formKey.currentState?.validate() == true) {