chore: bump line length to 120 (#20191)

This commit is contained in:
shenlong 2025-07-25 08:07:22 +05:30 committed by GitHub
parent 977c9b96ba
commit ad65e9011a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
517 changed files with 4520 additions and 9514 deletions

View file

@ -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(