refactor: Added and applied require_trailing_commas linter rule
This commit is contained in:
parent
adb3f766e5
commit
ec7acc5385
112 changed files with 3466 additions and 2855 deletions
|
|
@ -44,12 +44,17 @@ extension LocalNotificationsExtension on MatrixState {
|
|||
removeMarkdown: true,
|
||||
);
|
||||
final icon = event.senderFromMemoryOrFallback.avatarUrl?.getThumbnail(
|
||||
client,
|
||||
width: 64,
|
||||
height: 64,
|
||||
method: ThumbnailMethod.crop) ??
|
||||
room.avatar?.getThumbnail(client,
|
||||
width: 64, height: 64, method: ThumbnailMethod.crop);
|
||||
client,
|
||||
width: 64,
|
||||
height: 64,
|
||||
method: ThumbnailMethod.crop,
|
||||
) ??
|
||||
room.avatar?.getThumbnail(
|
||||
client,
|
||||
width: 64,
|
||||
height: 64,
|
||||
method: ThumbnailMethod.crop,
|
||||
);
|
||||
if (kIsWeb) {
|
||||
html.AudioElement()
|
||||
..src =
|
||||
|
|
@ -73,7 +78,8 @@ extension LocalNotificationsExtension on MatrixState {
|
|||
final avatarDirectory =
|
||||
await Directory('${tempDirectory.path}/notiavatars/').create();
|
||||
appIconFile = File(
|
||||
'${avatarDirectory.path}/${Uri.encodeComponent(appIconUrl.toString())}');
|
||||
'${avatarDirectory.path}/${Uri.encodeComponent(appIconUrl.toString())}',
|
||||
);
|
||||
if (await appIconFile.exists() == false) {
|
||||
final response = await http.get(appIconUrl);
|
||||
await appIconFile.writeAsBytes(response.bodyBytes);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue