mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(mobile): Add const linter (#14447)
This commit is contained in:
parent
4eb7758f56
commit
1bb6926b5e
14 changed files with 39 additions and 34 deletions
|
|
@ -46,7 +46,7 @@ class AlbumViewerAppbar extends HookConsumerWidget
|
|||
final bool success;
|
||||
if (album.shared) {
|
||||
success = await ref.watch(albumProvider.notifier).deleteAlbum(album);
|
||||
context.navigateTo(TabControllerRoute(children: [AlbumsRoute()]));
|
||||
context.navigateTo(const TabControllerRoute(children: [AlbumsRoute()]));
|
||||
} else {
|
||||
success = await ref.watch(albumProvider.notifier).deleteAlbum(album);
|
||||
context
|
||||
|
|
@ -113,7 +113,7 @@ class AlbumViewerAppbar extends HookConsumerWidget
|
|||
await ref.watch(albumProvider.notifier).leaveAlbum(album);
|
||||
|
||||
if (isSuccess) {
|
||||
context.navigateTo(TabControllerRoute(children: [AlbumsRoute()]));
|
||||
context.navigateTo(const TabControllerRoute(children: [AlbumsRoute()]));
|
||||
} else {
|
||||
context.pop();
|
||||
ImmichToast.show(
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ class BottomGalleryBar extends ConsumerWidget {
|
|||
),
|
||||
position: DecorationPosition.background,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(top: 40.0),
|
||||
padding: const EdgeInsets.only(top: 40.0),
|
||||
child: Column(
|
||||
children: [
|
||||
if (showVideoPlayerControls) const VideoControls(),
|
||||
|
|
|
|||
|
|
@ -143,9 +143,9 @@ class ImmichAppBarDialog extends HookConsumerWidget {
|
|||
);
|
||||
},
|
||||
trailing: isLoggingOut.value
|
||||
? SizedBox.square(
|
||||
? const SizedBox.square(
|
||||
dimension: 20,
|
||||
child: const CircularProgressIndicator(strokeWidth: 2),
|
||||
child: CircularProgressIndicator(strokeWidth: 2),
|
||||
)
|
||||
: null,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue