mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: enable search (#5474)
This commit is contained in:
parent
52e7fb49cd
commit
d8ca693976
@ -85,6 +85,8 @@ enum FeatureFlag {
|
||||
|
||||
bool get isOn {
|
||||
if ([
|
||||
// release this feature in version 0.5.9
|
||||
FeatureFlag.search,
|
||||
// release this feature in version 0.5.6
|
||||
FeatureFlag.collaborativeWorkspace,
|
||||
FeatureFlag.membersSettings,
|
||||
|
@ -56,7 +56,7 @@ class SidebarTopMenu extends StatelessWidget {
|
||||
: FlowySvgs.flowy_logo_text_xl;
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(top: 12.0, left: 4),
|
||||
padding: const EdgeInsets.only(top: 12.0, left: 8),
|
||||
child: FlowySvg(
|
||||
svgData,
|
||||
size: const Size(92, 17),
|
||||
|
@ -333,7 +333,8 @@ class _SidebarSearchButton extends StatelessWidget {
|
||||
return FlowyButton(
|
||||
onTap: () => CommandPalette.of(context).toggle(),
|
||||
leftIcon: const FlowySvg(FlowySvgs.search_s),
|
||||
iconPadding: 10.0,
|
||||
iconPadding: 12.0,
|
||||
margin: const EdgeInsets.only(left: 8.0),
|
||||
text: FlowyText.regular(LocaleKeys.search_label.tr()),
|
||||
);
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ class _WorkspaceIconState extends State<WorkspaceIcon> {
|
||||
Widget build(BuildContext context) {
|
||||
Widget child = widget.workspace.icon.isNotEmpty
|
||||
? Container(
|
||||
width: widget.emojiSize ?? widget.iconSize,
|
||||
width: widget.iconSize,
|
||||
alignment: widget.alignment ?? Alignment.center,
|
||||
child: FlowyText.emoji(
|
||||
widget.workspace.icon,
|
||||
|
@ -170,7 +170,7 @@ class FlowyText extends StatelessWidget {
|
||||
textAlign: textAlign,
|
||||
overflow: overflow ?? TextOverflow.clip,
|
||||
style: textStyle,
|
||||
strutStyle: Platform.isMacOS
|
||||
strutStyle: (Platform.isMacOS || Platform.isLinux) & !isEmoji
|
||||
? StrutStyle.fromTextStyle(
|
||||
textStyle,
|
||||
forceStrutHeight: true,
|
||||
|
Loading…
Reference in New Issue
Block a user