|
@@ -5,34 +5,34 @@ import 'package:flutter/material.dart';
|
|
|
class FlowyService {
|
|
|
// selection service
|
|
|
final selectionServiceKey = GlobalKey(debugLabel: 'flowy_selection_service');
|
|
|
- FlowySelectionService get selectionService {
|
|
|
+ AppFlowySelectionService get selectionService {
|
|
|
assert(selectionServiceKey.currentState != null &&
|
|
|
- selectionServiceKey.currentState is FlowySelectionService);
|
|
|
- return selectionServiceKey.currentState! as FlowySelectionService;
|
|
|
+ selectionServiceKey.currentState is AppFlowySelectionService);
|
|
|
+ return selectionServiceKey.currentState! as AppFlowySelectionService;
|
|
|
}
|
|
|
|
|
|
// keyboard service
|
|
|
final keyboardServiceKey = GlobalKey(debugLabel: 'flowy_keyboard_service');
|
|
|
- FlowyKeyboardService? get keyboardService {
|
|
|
+ AppFlowyKeyboardService? get keyboardService {
|
|
|
if (keyboardServiceKey.currentState != null &&
|
|
|
- keyboardServiceKey.currentState is FlowyKeyboardService) {
|
|
|
- return keyboardServiceKey.currentState! as FlowyKeyboardService;
|
|
|
+ keyboardServiceKey.currentState is AppFlowyKeyboardService) {
|
|
|
+ return keyboardServiceKey.currentState! as AppFlowyKeyboardService;
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
// input service
|
|
|
final inputServiceKey = GlobalKey(debugLabel: 'flowy_input_service');
|
|
|
- FlowyInputService? get inputService {
|
|
|
+ AppFlowyInputService? get inputService {
|
|
|
if (inputServiceKey.currentState != null &&
|
|
|
- inputServiceKey.currentState is FlowyInputService) {
|
|
|
- return inputServiceKey.currentState! as FlowyInputService;
|
|
|
+ inputServiceKey.currentState is AppFlowyInputService) {
|
|
|
+ return inputServiceKey.currentState! as AppFlowyInputService;
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
// render plugin service
|
|
|
- late FlowyRenderPlugin renderPluginService;
|
|
|
+ late AppFlowyRenderPlugin renderPluginService;
|
|
|
|
|
|
// toolbar service
|
|
|
final toolbarServiceKey = GlobalKey(debugLabel: 'flowy_toolbar_service');
|
|
@@ -46,10 +46,10 @@ class FlowyService {
|
|
|
|
|
|
// scroll service
|
|
|
final scrollServiceKey = GlobalKey(debugLabel: 'flowy_scroll_service');
|
|
|
- FlowyScrollService? get scrollService {
|
|
|
+ AppFlowyScrollService? get scrollService {
|
|
|
if (scrollServiceKey.currentState != null &&
|
|
|
- scrollServiceKey.currentState is FlowyScrollService) {
|
|
|
- return scrollServiceKey.currentState! as FlowyScrollService;
|
|
|
+ scrollServiceKey.currentState is AppFlowyScrollService) {
|
|
|
+ return scrollServiceKey.currentState! as AppFlowyScrollService;
|
|
|
}
|
|
|
return null;
|
|
|
}
|