Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Apply dart fixes

vishnukvmd685fc408eae0
diff --git a/lib/ui/collections/album/vertical_list.dart b/lib/ui/collections/album/vertical_list.dart
index 52f75ecad2..f95b1c2acd 100644
--- a/lib/ui/collections/album/vertical_list.dart
+++ b/lib/ui/collections/album/vertical_list.dart
@@ -363,7 +363,7 @@ class AlbumVerticalListWidget extends StatelessWidget {
int collectionID,
bool showProgressDialog,
) async {
- bool result = await _collectionActions.addToCollection(
+ final bool result = await _collectionActions.addToCollection(
context,
collectionID,
showProgressDialog,
diff --git a/lib/ui/collections/button/hidden_button.dart b/lib/ui/collections/button/hidden_button.dart
index e282e10127..cb1ea8ca1e 100644
--- a/lib/ui/collections/button/hidden_button.dart
+++ b/lib/ui/collections/button/hidden_button.dart
@@ -80,7 +80,7 @@ class HiddenCollectionsButtonWidget extends StatelessWidget {
if (hasAuthenticated) {
routeToPage(
context,
- HiddenPage(),
+ const HiddenPage(),
);
}
},
diff --git a/lib/ui/viewer/file/file_app_bar.dart b/lib/ui/viewer/file/file_app_bar.dart
index ac666198bb..d277b687af 100644
--- a/lib/ui/viewer/file/file_app_bar.dart
+++ b/lib/ui/viewer/file/file_app_bar.dart
@@ -108,7 +108,7 @@ class FileAppBarState extends State<FileAppBar> {
actions.add(
Text(
widget.file.generatedID?.toString() ?? 'null',
- style: TextStyle(color: Colors.white),
+ style: const TextStyle(color: Colors.white),
),
);
}