mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: add ... button in mobile toolbar (#3970)
* feat: add ... button in mobile toolbar * fix: the title state should be reset when canceling * fix: reset hover status after picking emoji * fix: some emojis missing on linux and android * fix: unable to press enter key to rename page
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import 'package:appflowy/generated/flowy_svgs.g.dart';
|
||||
import 'package:appflowy/generated/locale_keys.g.dart';
|
||||
import 'package:appflowy/plugins/base/emoji/emoji_picker.dart';
|
||||
import 'package:appflowy_editor/appflowy_editor.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
|
||||
import 'package:flowy_infra_ui/style_widget/hover.dart';
|
||||
@ -119,6 +120,9 @@ class _FlowyIconPickerState extends State<FlowyIconPicker>
|
||||
}
|
||||
|
||||
int _getEmojiPerLine() {
|
||||
if (PlatformExtension.isDesktopOrWeb) {
|
||||
return 9;
|
||||
}
|
||||
final width = MediaQuery.of(context).size.width;
|
||||
return width ~/ 46.0; // the size of the emoji
|
||||
}
|
||||
|
Reference in New Issue
Block a user