Skip to content

Commit 9d35f48

Browse files
committed
chore: add FlexboxLayout example in toolbox
1 parent 11e2430 commit 9d35f48

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

apps/toolbox/src/pages/glass-effects.xml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515

1616
<Button row="2" text="Toggle Glass" tap="{{toggleGlassEffect}}" horizontalAlignment="center" verticalAlignment="middle" class="c-white font-weight-bold m-y-20 p-4" fontSize="22" borderRadius="32" width="300" height="100" touchAnimation="{{touchAnimation}}" iosGlassEffect="{{currentEffect}}"/>
1717

18-
<LiquidGlass row="3" width="300" height="100" borderRadius="32" iosGlassEffect="{{iosGlassEffectInteractive}}" >
18+
<LiquidGlass row="3" width="300" height="100" borderRadius="32" iosGlassEffect="{{iosGlassEffectInteractive}}">
1919

2020
<Label text="Glass Interactive" fontSize="22" class="font-weight-bold text-center c-white" />
2121

2222
</LiquidGlass>
2323

24-
24+
2525
<LiquidGlassContainer row="4" tap="{{toggleMergeGlass}}" horizontalAlignment="left" verticalAlignment="middle" class="m-t-20" width="300" height="100" columns="*">
2626
<LiquidGlass id="glass1" loaded="{{loadedGlass}}" borderRadius="50" width="100" height="100">
2727
<Label id="share" text="Share" fontSize="22" class="font-weight-bold text-center" width="100" height="100" loaded="{{loadedGlassLabels}}" />
@@ -32,6 +32,28 @@
3232
</LiquidGlassContainer>
3333
</GridLayout>
3434

35+
<GridLayout rows="auto,auto" marginTop="20">
36+
<Label text="Inside FlexboxLayout:" fontSize="22" class="font-weight-bold text-center c-white" />
37+
<FlexboxLayout row="1" marginTop="12" alignment="center" justifyContent="center" flexDirection="column" width="350">
38+
39+
<LiquidGlass row="3" width="300" height="100" borderRadius="32" iosGlassEffect="{{iosGlassEffectInteractive}}">
40+
41+
<Label text="Glass Interactive" fontSize="22" class="font-weight-bold text-center c-white" />
42+
43+
</LiquidGlass>
44+
45+
<!-- Can try containers as well -->
46+
<!-- <LiquidGlassContainer row="4" tap="{{toggleMergeGlass}}" horizontalAlignment="left" verticalAlignment="middle" class="m-t-20" width="300" height="100" columns="*">
47+
<LiquidGlass id="glass1" loaded="{{loadedGlass}}" borderRadius="50" width="100" height="100">
48+
<Label id="share" text="Share" fontSize="22" class="font-weight-bold text-center" width="100" height="100" loaded="{{loadedGlassLabels}}" />
49+
</LiquidGlass>
50+
<LiquidGlass id="glass2" loaded="{{loadedGlass}}" borderRadius="50" width="100" height="100">
51+
<Label id="like" text="Like" fontSize="22" class="font-weight-bold text-center" loaded="{{loadedGlassLabels}}" />
52+
</LiquidGlass>
53+
</LiquidGlassContainer> -->
54+
</FlexboxLayout>
55+
</GridLayout>
56+
3557
<GridLayout rows="*,auto,auto,auto,*" class="m-t-10">
3658
<GridLayout row="1" width="300" height="100" iosGlassEffect="regular" horizontalAlignment="center" verticalAlignment="middle" borderRadius="32">
3759
<Label class="text-center c-white" fontWeight="bold" fontSize="18" text="Glass Effects Regular" />

0 commit comments

Comments
 (0)