From dcf60a27ec1909221986cef0de1f85c119174908 Mon Sep 17 00:00:00 2001 From: Michael Markl Date: Sat, 4 Mar 2023 14:33:33 +0100 Subject: [PATCH 1/5] Upgrade frontend --- .circleci/config.yml | 2 +- .github/hooks/pre-commit | 2 +- .idea/runConfigurations/Format_frontend.xml | 2 +- frontend/.fvm/fvm_config.json | 2 +- frontend/analysis_options.yaml | 2 +- frontend/lib/about/about_page.dart | 10 +- frontend/lib/about/content_tile.dart | 2 +- frontend/lib/about/license_page.dart | 2 +- frontend/lib/about/texts.dart | 4 +- frontend/lib/home/home_page.dart | 4 +- .../animated_progressbar.dart | 4 +- .../verification_code_view.dart | 6 +- frontend/lib/identification/info_dialog.dart | 2 +- frontend/lib/identification/no_card_view.dart | 2 +- .../qr_code_scanner/qr_code_scanner.dart | 130 +-- .../dialogs/verification_info_dialog.dart | 2 +- .../verification_qr_scanner_page.dart | 22 +- frontend/lib/intro_slides/intro_screen.dart | 134 ++- frontend/lib/map/location_button.dart | 2 +- .../preview/accepting_store_preview_card.dart | 4 +- frontend/lib/search/filter_bar_button.dart | 2 +- frontend/lib/search/location_button.dart | 2 +- .../accepting_store_summary.dart | 6 +- .../store_widgets/detail/detail_app_bar.dart | 4 +- .../store_widgets/detail/detail_content.dart | 2 +- frontend/lib/themes.dart | 28 +- frontend/lib/widgets/app_bars.dart | 4 +- frontend/pubs/df_build_config/pubspec.yaml | 2 +- frontend/pubs/df_protobuf/pubspec.yaml | 2 +- frontend/pubspec.lock | 867 ++++++++++-------- frontend/pubspec.yaml | 43 +- 31 files changed, 709 insertions(+), 593 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 43ca9c38d..e4acc483b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -164,7 +164,7 @@ jobs: command: fvm flutter pub get - run: name: Check Formatting - command: fvm flutter format -l 120 -o none --set-exit-if-changed . + command: fvm dart format -l 120 -o none --set-exit-if-changed . - run: name: Build Runner command: | diff --git a/.github/hooks/pre-commit b/.github/hooks/pre-commit index 32d604ef3..67da91a69 100755 --- a/.github/hooks/pre-commit +++ b/.github/hooks/pre-commit @@ -14,7 +14,7 @@ if [ ! -x "$(command -v fvm)" ]; then fi # Prettify all selected files -echo "$FILES" | xargs fvm flutter format -l 120 +echo "$FILES" | xargs fvm dart format -l 120 # Add back the modified/prettified files to staging echo "$FILES" | xargs git add diff --git a/.idea/runConfigurations/Format_frontend.xml b/.idea/runConfigurations/Format_frontend.xml index edf0b2fcf..4ea012225 100644 --- a/.idea/runConfigurations/Format_frontend.xml +++ b/.idea/runConfigurations/Format_frontend.xml @@ -1,6 +1,6 @@ -