mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-20 16:55:17 +00:00
Update application dependencies
This commit is contained in:
@ -2,7 +2,7 @@ import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:photo_view/photo_view.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
/// Full screen image details
|
||||
///
|
||||
@ -26,7 +26,7 @@ class _FullScreenImageRouteState extends State<FullScreenImageRoute> {
|
||||
title: Text(tr("Image")!),
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: Icon(Icons.launch), onPressed: () => launch(widget.url))
|
||||
icon: Icon(Icons.launch), onPressed: () => launchUrlString(widget.url))
|
||||
],
|
||||
),
|
||||
body: PhotoView(
|
||||
|
@ -19,7 +19,6 @@ import '../../utils/files_utils.dart';
|
||||
/// Return original image in case of error / if the user did not crop the image
|
||||
Future<BytesFile> showImageCropper(BuildContext context, BytesFile source,
|
||||
{CropAspectRatio? aspectRatio}) async {
|
||||
|
||||
File? file;
|
||||
File? cropped;
|
||||
|
||||
@ -27,15 +26,18 @@ Future<BytesFile> showImageCropper(BuildContext context, BytesFile source,
|
||||
file = await generateTemporaryFile();
|
||||
await file.writeAsBytes(source.bytes!);
|
||||
|
||||
File? cropped = await ImageCropper().cropImage(
|
||||
var cropped = await ImageCropper().cropImage(
|
||||
sourcePath: file.absolute.path,
|
||||
compressFormat: ImageCompressFormat.png,
|
||||
aspectRatio: aspectRatio,
|
||||
androidUiSettings: AndroidUiSettings(
|
||||
toolbarColor: Colors.black,
|
||||
toolbarTitle: tr("Crop Photo"),
|
||||
toolbarWidgetColor: Colors.white,
|
||||
),
|
||||
uiSettings: [
|
||||
AndroidUiSettings(
|
||||
toolbarColor: Colors.black,
|
||||
toolbarTitle: tr("Crop Photo"),
|
||||
toolbarWidgetColor: Colors.white,
|
||||
),
|
||||
IOSUiSettings(title: tr("Crop Photo"))
|
||||
],
|
||||
);
|
||||
|
||||
if (cropped == null) return source;
|
||||
|
@ -5,7 +5,7 @@ import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:comunic/utils/ui_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_settings_ui/flutter_settings_ui.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
/// About application settings
|
||||
///
|
||||
@ -24,11 +24,11 @@ class AboutApplicationSettings extends StatelessWidget {
|
||||
tiles: [
|
||||
SettingsTile(
|
||||
title: tr("Privacy policy"),
|
||||
onPressed: (c) => launch(srvConfig!.privacyPolicyURL),
|
||||
onPressed: (c) => launchUrlString(srvConfig!.privacyPolicyURL),
|
||||
),
|
||||
SettingsTile(
|
||||
title: tr("Terms of Use"),
|
||||
onPressed: (c) => launch(srvConfig!.termsURL),
|
||||
onPressed: (c) => launchUrlString(srvConfig!.termsURL),
|
||||
),
|
||||
SettingsTile(
|
||||
title: tr("Contact us"),
|
||||
|
Reference in New Issue
Block a user