Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

ci: fix flutter warnings

appflowyf872c6c1f83f
diff --git a/.github/workflows/rust_lint.yml b/.github/workflows/rust_lint.yml
index 1cf3175c76..23a24d1c06 100644
--- a/.github/workflows/rust_lint.yml
+++ b/.github/workflows/rust_lint.yml
@@ -44,12 +44,7 @@ jobs:
- name: Install cargo-make
run: cargo install --force cargo-make
working-directory: frontend
- - name: Install protobuf tool
- run:
- cargo make flowy_dev
- echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
- working-directory: frontend
- run: rustup component add clippy
working-directory: frontend/rust-lib
- - run: cargo clippy
+ - run: cargo clippy --no-default-features
working-directory: frontend/rust-lib
\ No newline at end of file
diff --git a/.github/workflows/rust_test.yml b/.github/workflows/rust_test.yml
index d4863c170b..a45f694196 100644
--- a/.github/workflows/rust_test.yml
+++ b/.github/workflows/rust_test.yml
@@ -32,9 +32,7 @@ jobs:
run: cargo install --force cargo-make
working-directory: frontend
- name: Install protobuf tool
- run:
- cargo make flowy_dev
- echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
+ run: brew install protobuf
working-directory: frontend
- name: RustLib tests
run: cargo test --no-default-features
diff --git a/frontend/app_flowy/packages/flowy_infra/lib/theme.dart b/frontend/app_flowy/packages/flowy_infra/lib/theme.dart
index c29cd644ed..04b4a19fdb 100644
--- a/frontend/app_flowy/packages/flowy_infra/lib/theme.dart
+++ b/frontend/app_flowy/packages/flowy_infra/lib/theme.dart
@@ -161,9 +161,7 @@ class AppTheme {
colorScheme: ColorScheme(
brightness: isDark ? Brightness.dark : Brightness.light,
primary: main1,
- primaryVariant: main2,
secondary: main2,
- secondaryVariant: main2,
background: surface,
surface: surface,
onBackground: surface,
diff --git a/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto b/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto
index edb92f4ac4..7a87552f7d 100644
--- a/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto
+++ b/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto
@@ -1,4 +1,5 @@
syntax = "proto3";
+
enum FolderNotification {
Unknown = 0;
UserCreateWorkspace = 10;
diff --git a/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto b/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto
index 032d6c4e05..56d4fecd2d 100644
--- a/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto
+++ b/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto
@@ -1,4 +1,5 @@
syntax = "proto3";
+
enum FolderEvent {
CreateWorkspace = 0;
ReadCurWorkspace = 1;