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:
parent
470c4e77c7
commit
6721018df0
1 changed files with 320 additions and 6 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue