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.

fix flutter warnings

appflowyffc4a67e2e05
diff --git a/app_flowy/macos/Flutter/GeneratedPluginRegistrant.swift b/app_flowy/macos/Flutter/GeneratedPluginRegistrant.swift
index dc3b203eab..277667927e 100644
--- a/app_flowy/macos/Flutter/GeneratedPluginRegistrant.swift
+++ b/app_flowy/macos/Flutter/GeneratedPluginRegistrant.swift
@@ -6,6 +6,7 @@ import FlutterMacOS
import Foundation
import flowy_editor
+import flowy_infra_ui
import flowy_sdk
import path_provider_macos
import url_launcher_macos
@@ -13,6 +14,7 @@ import window_size
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FlowyEditorPlugin.register(with: registry.registrar(forPlugin: "FlowyEditorPlugin"))
+ FlowyInfraUiPlugin.register(with: registry.registrar(forPlugin: "FlowyInfraUiPlugin"))
FlowySdkPlugin.register(with: registry.registrar(forPlugin: "FlowySdkPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
diff --git a/app_flowy/packages/flowy_infra_ui/example/lib/main.dart b/app_flowy/packages/flowy_infra_ui/example/lib/main.dart
index b31b2dcf48..9cc621647d 100644
--- a/app_flowy/packages/flowy_infra_ui/example/lib/main.dart
+++ b/app_flowy/packages/flowy_infra_ui/example/lib/main.dart
@@ -9,6 +9,6 @@ class ExampleApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
- return MaterialApp();
+ return const MaterialApp();
}
}
diff --git a/app_flowy/packages/flowy_infra_ui/example/pubspec.lock b/app_flowy/packages/flowy_infra_ui/example/pubspec.lock
index c05870c42c..999a86c0e7 100644
--- a/app_flowy/packages/flowy_infra_ui/example/pubspec.lock
+++ b/app_flowy/packages/flowy_infra_ui/example/pubspec.lock
@@ -14,7 +14,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
- version: "2.6.1"
+ version: "2.7.0"
boolean_selector:
dependency: transitive
description:
@@ -35,7 +35,7 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
- version: "1.2.0"
+ version: "1.3.1"
clock:
dependency: transitive
description:
@@ -162,7 +162,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
- version: "1.3.0"
+ version: "1.4.0"
nested:
dependency: transitive
description:
@@ -237,7 +237,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
- version: "0.3.0"
+ version: "0.4.1"
textstyle_extensions:
dependency: transitive
description:
diff --git a/app_flowy/packages/flowy_infra_ui/example/test/widget_test.dart b/app_flowy/packages/flowy_infra_ui/example/test/widget_test.dart
index 1d7ea5f43e..09c1545e57 100644
--- a/app_flowy/packages/flowy_infra_ui/example/test/widget_test.dart
+++ b/app_flowy/packages/flowy_infra_ui/example/test/widget_test.dart
@@ -13,13 +13,13 @@ import 'package:flowy_infra_ui_example/main.dart';
void main() {
testWidgets('Verify Platform version', (WidgetTester tester) async {
// Build our app and trigger a frame.
- await tester.pumpWidget(const MyApp());
+ await tester.pumpWidget(const ExampleApp());
// Verify that platform version is retrieved.
expect(
find.byWidgetPredicate(
- (Widget widget) => widget is Text &&
- widget.data!.startsWith('Running on:'),
+ (Widget widget) =>
+ widget is Text && widget.data!.startsWith('Running on:'),
),
findsOneWidget,
);
diff --git a/app_flowy/packages/flowy_infra_ui/pubspec.lock b/app_flowy/packages/flowy_infra_ui/pubspec.lock
index cff84ae06e..db0559ecf9 100644
--- a/app_flowy/packages/flowy_infra_ui/pubspec.lock
+++ b/app_flowy/packages/flowy_infra_ui/pubspec.lock
@@ -14,7 +14,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
- version: "2.6.1"
+ version: "2.7.0"
boolean_selector:
dependency: transitive
description:
@@ -35,7 +35,7 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
- version: "1.2.0"
+ version: "1.3.1"
clock:
dependency: transitive
description:
@@ -148,7 +148,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
- version: "1.3.0"
+ version: "1.4.0"
nested:
dependency: transitive
description:
@@ -223,7 +223,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
- version: "0.3.0"
+ version: "0.4.1"
textstyle_extensions:
dependency: "direct main"
description: