feat: added offline collaboration example using appflowy_editor_sync_plugin (#1103)

* Adding offline collaboration example using appflowy_editor_sync_plugin

* Adapting example to a new  appflowy_editor_sync_plugin version.

* Revert "Adapting example to a new  appflowy_editor_sync_plugin version."

This reverts commit 7ea235f6f6ceb34d00a365fd05e82cdb6c5a8c67.

* increase flutter-version for testing workflow

* fix: auto_scrollable_widget adding lint ignore: invalide_use_of_protected_member.
This commit is contained in:
Jan Zimola 2025-05-12 09:21:29 +02:00 • committed by GitHub
commit 6721018df0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,12 +1,12 @@
import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:appflowy_editor_sync_plugin/appflowy_editor_sync_utility_functions.dart';
import 'package:example/home_page.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:example/home_page.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
void main() {
void main() async {
WidgetsFlutterBinding.ensureInitialized();
if (defaultTargetPlatform == TargetPlatform.android) {
@ -15,6 +15,8 @@ void main() {
const SystemUiOverlayStyle(systemNavigationBarColor: Colors.transparent),
);
}
// Important for Offline Collaboration
await AppflowyEditorSyncUtilityFunctions.initAppFlowyEditorSync();
runApp(const MyApp());
}