mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: bump line length to 120 (#20191)
This commit is contained in:
parent
977c9b96ba
commit
ad65e9011a
517 changed files with 4520 additions and 9514 deletions
|
|
@ -40,9 +40,7 @@ class EditImagePage extends ConsumerWidget {
|
|||
image.image.resolve(const ImageConfiguration()).addListener(
|
||||
ImageStreamListener(
|
||||
(ImageInfo info, bool _) {
|
||||
info.image
|
||||
.toByteData(format: ImageByteFormat.png)
|
||||
.then((byteData) {
|
||||
info.image.toByteData(format: ImageByteFormat.png).then((byteData) {
|
||||
if (byteData != null) {
|
||||
completer.complete(byteData.buffer.asUint8List());
|
||||
} else {
|
||||
|
|
@ -50,8 +48,7 @@ class EditImagePage extends ConsumerWidget {
|
|||
}
|
||||
});
|
||||
},
|
||||
onError: (exception, stackTrace) =>
|
||||
completer.completeError(exception),
|
||||
onError: (exception, stackTrace) => completer.completeError(exception),
|
||||
),
|
||||
);
|
||||
return completer.future;
|
||||
|
|
@ -103,9 +100,7 @@ class EditImagePage extends ConsumerWidget {
|
|||
),
|
||||
actions: <Widget>[
|
||||
TextButton(
|
||||
onPressed: isEdited
|
||||
? () => _saveEditedImage(context, asset, image, ref)
|
||||
: null,
|
||||
onPressed: isEdited ? () => _saveEditedImage(context, asset, image, ref) : null,
|
||||
child: Text(
|
||||
"save_to_gallery".tr(),
|
||||
style: TextStyle(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue