![]() One neat application of this is that it enables padding between sibling layers, e.g: Using 100% in the right or left pinnings equals 100% of the relative layer’s width.Using 100% in the top or bottom pinnings equals 100% of the relative layer’s height.Using 100% as your fixed height equals 100% of the relative layer’s height.Using 100% as your fixed width equals 100% of the relative layer’s width.Percentages are relative to the dimension of the axis they’re on. This becomes even more useful when you add percentages to the mix. Restored in Fluid 1.7.5! □ Mathematic ValuesĪll of the values in Fluid support mathematic expressions, such as 20 * 2 or (50 / 2) + 10 and so on. This feature was available in former versions of Fluid, but has been removed in 1.7.4. If you set the width of a text layer but not its height, the plugin will set the height of the text layer to the height of the text after reflow. It’s worth noting that while constraints you set on a Symbol itself will not propagate to other instances of that Symbol, any constraints you set on its sub-layers will. Rather, it simulates that sizing when calculating the geometry of sub-layers. Since the width and height of Groups in Sketch are dependent on their sub-layers, Fluid does not actually resize the height or width of a group, as that causes Sketch to distort the layers within it. This is useful in some cases where you want to ensure the height and width do not change, but don’t want to enter the existing height/width manually. If you have Fixed Width or Fixed Height checked, and leave the value blank, the plugin will lock the width or height to whatever the current height or width is in Sketch. You can have Fluid fade its floating UI (Inspector & Toolbar) when they are not focused. Opens a popup where you can toggle the size of the current artboard between different presets, or flip its orientation. You can also copy the preview artboard to paste into Sketch (Didn’t have a mobile design? Now you do!), or export an image of the preview artboard at different scales and so on). Opens a window allowing you to preview the selected artboard at a range of preset device and icon sizes. Pressing L while the Constraint Inspector is focused will also Update Layout. Pressing it opens a menu where you can set relativity:Īdjusts the layers in the currently selected artboards to reflect your constraints. Next to each section (Align, Fixed Size and Pinning) is a dropdown button. Here you can edit all of the constraints for the currently selected layer. This option shows the Constraint Inspector. Show/Hide Toolbar (⌃ + ⇧ + T)įor convenience, the plugin provides a toolbar that floats above the current document, giving you quick access to all of the above actions. All of the features the plugin provides are available via Plugins > Fluid. There are 5 primary actions: Show/Hide Toolbar, Update Layout, Edit Constraints, Preview, and Toggle Size. Changing constraints, re-sizing artboards and pressing Update Layout) makes things clearer. Examining the constraints used and playing around with the different options (i.e. There are several examples included there. Constraints are stored directly on a layer, so no worries with layer namesįirst and foremost, we recommend downloading the example Sketch document included in this repo (linked to it above).Preview, export and copy artboards at different sizes in Preview Mode.Quickly resize artboards and update their layout.Utilize simple mathematic expressions as values, such as 50% - 10.Pin, Offset, Center, and Size relative to Parent Group, Parent Artboard, or Previous Sibling Layer.After updating Fluid (whether manually or via other manager) restart Sketch to receive goodness.If you usually use Sketch Toolbox, please install manually or through another plugin manager. ⚠️ Sketch Toolbox is no longer officially supported due to a lack of updates and several bugs. You will see the ‘Fluid for Sketch’ plugin listed.In the ‘Catalog’ tab, click in the ‘Search’ field and type ‘Fluid’, to filter the list. ![]() Runner allows you to manage plugins and do much more to speed up your workflow in Sketch. With Sketch Runner, just go to the install command and search for Fluid. ![]()
0 Comments
Leave a Reply. |