mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-09-11 11:15:53 +03:00
chore: disable sync indicator (#5479)
This commit is contained in:
parent
383e06ff2d
commit
d73e388d01
@ -6,7 +6,6 @@ import 'package:appflowy/mobile/presentation/base/view_page/app_bar_buttons.dart
|
||||
import 'package:appflowy/mobile/presentation/widgets/flowy_mobile_state_container.dart';
|
||||
import 'package:appflowy/plugins/base/emoji/emoji_text.dart';
|
||||
import 'package:appflowy/plugins/document/presentation/document_collaborators.dart';
|
||||
import 'package:appflowy/plugins/shared/sync_indicator.dart';
|
||||
import 'package:appflowy/shared/feature_flags.dart';
|
||||
import 'package:appflowy/startup/plugin/plugin.dart';
|
||||
import 'package:appflowy/startup/startup.dart';
|
||||
@ -195,13 +194,6 @@ class _MobileViewPageState extends State<MobileViewPage> {
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
view: view,
|
||||
),
|
||||
const HSpace(16.0),
|
||||
DocumentSyncIndicator(view: view),
|
||||
const HSpace(12.0),
|
||||
]);
|
||||
} else {
|
||||
actions.addAll([
|
||||
DatabaseSyncIndicator(view: view),
|
||||
const HSpace(12.0),
|
||||
]);
|
||||
}
|
||||
|
@ -1,9 +1,7 @@
|
||||
import 'package:appflowy/plugins/database/application/database_controller.dart';
|
||||
import 'package:appflowy/plugins/database/application/tab_bar_bloc.dart';
|
||||
import 'package:appflowy/plugins/database/widgets/share_button.dart';
|
||||
import 'package:appflowy/plugins/shared/sync_indicator.dart';
|
||||
import 'package:appflowy/plugins/util.dart';
|
||||
import 'package:appflowy/shared/feature_flags.dart';
|
||||
import 'package:appflowy/startup/plugin/plugin.dart';
|
||||
import 'package:appflowy/workspace/application/view/view_bloc.dart';
|
||||
import 'package:appflowy/workspace/application/view_info/view_info_bloc.dart';
|
||||
@ -272,15 +270,6 @@ class DatabasePluginWidgetBuilder extends PluginWidgetBuilder {
|
||||
value: bloc,
|
||||
child: Row(
|
||||
children: [
|
||||
...FeatureFlag.syncDatabase.isOn
|
||||
? [
|
||||
DatabaseSyncIndicator(
|
||||
key: ValueKey('sync_state_${view.id}'),
|
||||
view: view,
|
||||
),
|
||||
const HSpace(16),
|
||||
]
|
||||
: [],
|
||||
DatabaseShareButton(key: ValueKey(view.id), view: view),
|
||||
const HSpace(10),
|
||||
ViewFavoriteButton(view: view),
|
||||
|
@ -118,10 +118,6 @@ class _DatabaseDocumentPageState extends State<DatabaseDocumentPage> {
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
// Only show the indicator in integration test mode
|
||||
// if (FlowyRunner.currentMode.isIntegrationTest)
|
||||
// const DocumentSyncIndicator(),
|
||||
|
||||
if (state.isDeleted) _buildBanner(context),
|
||||
Expanded(child: appflowyEditorPage),
|
||||
],
|
||||
|
@ -6,7 +6,6 @@ import 'package:appflowy/plugins/document/application/document_appearance_cubit.
|
||||
import 'package:appflowy/plugins/document/document_page.dart';
|
||||
import 'package:appflowy/plugins/document/presentation/document_collaborators.dart';
|
||||
import 'package:appflowy/plugins/document/presentation/share/share_button.dart';
|
||||
import 'package:appflowy/plugins/shared/sync_indicator.dart';
|
||||
import 'package:appflowy/plugins/util.dart';
|
||||
import 'package:appflowy/shared/feature_flags.dart';
|
||||
import 'package:appflowy/startup/plugin/plugin.dart';
|
||||
@ -153,11 +152,6 @@ class DocumentPluginWidgetBuilder extends PluginWidgetBuilder
|
||||
view: view,
|
||||
),
|
||||
const HSpace(16),
|
||||
DocumentSyncIndicator(
|
||||
key: ValueKey('sync_state_${view.id}'),
|
||||
view: view,
|
||||
),
|
||||
const HSpace(16),
|
||||
]
|
||||
: [const HSpace(8)],
|
||||
DocumentShareButton(
|
||||
|
@ -139,10 +139,6 @@ class _DocumentPageState extends State<DocumentPage>
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
// Only show the indicator in integration test mode
|
||||
// if (FlowyRunner.currentMode.isIntegrationTest)
|
||||
// const DocumentSyncIndicator(),
|
||||
|
||||
if (state.isDeleted) _buildBanner(context),
|
||||
Expanded(child: child),
|
||||
],
|
||||
|
@ -143,6 +143,9 @@ class FlowyText extends StatelessWidget {
|
||||
if (fontFamily != null && fallbackFontFamily == null) {
|
||||
fallbackFontFamily = [fontFamily];
|
||||
}
|
||||
}
|
||||
|
||||
if (isEmoji && (_useNotoColorEmoji || Platform.isWindows)) {
|
||||
fontSize = fontSize * 0.8;
|
||||
}
|
||||
|
||||
@ -199,6 +202,5 @@ class FlowyText extends StatelessWidget {
|
||||
return null;
|
||||
}
|
||||
|
||||
bool get _useNotoColorEmoji =>
|
||||
Platform.isLinux || Platform.isAndroid || Platform.isWindows;
|
||||
bool get _useNotoColorEmoji => Platform.isLinux || Platform.isAndroid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user