mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: feature flag in settings page (#4833)
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
import 'package:appflowy/shared/feature_flags.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
import '../startup.dart';
|
||||
|
||||
class FeatureFlagTask extends LaunchTask {
|
||||
const FeatureFlagTask();
|
||||
|
||||
@override
|
||||
Future<void> initialize(LaunchContext context) async {
|
||||
// the hotkey manager is not supported on mobile
|
||||
if (!kDebugMode) {
|
||||
return;
|
||||
}
|
||||
|
||||
await FeatureFlag.initialize();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> dispose() async {}
|
||||
}
|
Reference in New Issue
Block a user