π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add mobile Dart format check
Manav Rathi826c534d3fa4
diff --git a/.github/workflows/auth-lint.yml b/.github/workflows/auth-lint.ymlindex 950e85a2e6..5b4257aea6 100644--- a/.github/workflows/auth-lint.yml+++ b/.github/workflows/auth-lint.yml@@ -86,6 +86,8 @@ jobs:- name: Generate auth localizationsrun: flutter gen-l10n+ - run: dart format --output=none --set-exit-if-changed .+- name: Analyze authrun: flutter analyze --no-fatal-infosdiff --git a/.github/workflows/locker-lint.yml b/.github/workflows/locker-lint.ymlindex 5b222cd389..822bc58f59 100644--- a/.github/workflows/locker-lint.yml+++ b/.github/workflows/locker-lint.yml@@ -62,6 +62,8 @@ jobs:- name: Generate locker localizationsrun: flutter gen-l10n+ - run: dart format --output=none --set-exit-if-changed .+- name: Analyze lockerrun: flutter analyze --no-fatal-infosdiff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.ymlindex c7d35c1352..9dcc584083 100644--- a/.github/workflows/mobile-lint.yml+++ b/.github/workflows/mobile-lint.yml@@ -56,6 +56,8 @@ jobs:- run: cargo clippy -p ente_photos_rust --features flutter --all-targets --locked -- -D warningsworking-directory: rust+ - run: dart format --output=none --set-exit-if-changed .+- run: flutter analyze --no-fatal-infos- name: Run Flutter testsdiff --git a/.github/workflows/mobile-packages-lint.yml b/.github/workflows/mobile-packages-lint.ymlindex 07a0554011..386f20c204 100644--- a/.github/workflows/mobile-packages-lint.yml+++ b/.github/workflows/mobile-packages-lint.yml@@ -107,102 +107,102 @@ jobs:# Lint all affected packages conditionally- name: Lint package - accountsif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'accounts')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/accounts- name: Lint package - baseif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'base')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/base- name: Lint package - configurationif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'configuration')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/configuration- name: Lint package - scoped_dir_accessif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'scoped_dir_access')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/scoped_dir_access- name: Lint package - ente_crypto_apiif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'ente_crypto_api')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/ente_crypto_api- name: Lint package - ente_crypto_dart_adapterif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'ente_crypto_dart_adapter')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/ente_crypto_dart_adapter- name: Lint package - ente_iconsif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'ente_icons')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/ente_icons- name: Lint package - ente_pure_utilsif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'ente_pure_utils')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/ente_pure_utils- name: Lint package - eventsif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'events')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/events- name: Lint package - legacyif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'legacy')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/legacy- name: Lint package - lock_screenif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'lock_screen')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/lock_screen- name: Lint package - log_viewerif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'log_viewer')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/log_viewer- name: Lint package - loggingif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'logging')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/logging- name: Lint package - native_video_editorif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'native_video_editor')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/native_video_editor- name: Lint package - networkif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'network')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/network- name: Lint package - qrif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'qr')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/qr- name: Lint package - sharingif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'sharing')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/sharing- name: Lint package - stringsif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'strings')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/strings- name: Lint package - uiif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'ui')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/ui- name: Lint package - utilsif: needs.detect-changes.outputs.lint_all == 'true' || contains(needs.detect-changes.outputs.packages, 'utils')- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos+ run: flutter pub get --enforce-lockfile && dart format --output=none --set-exit-if-changed . && flutter analyze --no-fatal-infosworking-directory: mobile/packages/utilsapps-lint:@@ -247,6 +247,7 @@ jobs:if: needs.detect-changes.outputs.lint_photos == 'true'run: |flutter pub get --enforce-lockfile+ dart format --output=none --set-exit-if-changed .flutter analyze --no-fatal-infosflutter testworking-directory: mobile/apps/photos@@ -256,6 +257,7 @@ jobs:run: |flutter pub get --enforce-lockfileflutter gen-l10n+ dart format --output=none --set-exit-if-changed .flutter analyze --no-fatal-infosflutter testworking-directory: mobile/apps/auth@@ -265,6 +267,7 @@ jobs:run: |flutter pub get --enforce-lockfileflutter gen-l10n+ dart format --output=none --set-exit-if-changed .flutter analyze --no-fatal-infosflutter testworking-directory: mobile/apps/lockerdiff --git a/mobile/apps/photos/lib/ui/tabs/albums/empty_states/empty_state_feature_row.dart b/mobile/apps/photos/lib/ui/tabs/albums/empty_states/empty_state_feature_row.dartindex 8bf822d605..b70dc97db7 100644--- a/mobile/apps/photos/lib/ui/tabs/albums/empty_states/empty_state_feature_row.dart+++ b/mobile/apps/photos/lib/ui/tabs/albums/empty_states/empty_state_feature_row.dart@@ -36,10 +36,7 @@ class EmptyStateFeatureRow extends StatelessWidget {}class EmptyStateBulletFeatureRow extends StatelessWidget {- const EmptyStateBulletFeatureRow({- required this.label,- super.key,- });+ const EmptyStateBulletFeatureRow({required this.label, super.key});final String label;