Skip to content

Commit

Permalink
Merge pull request #6 from fabulous-dev/fix-flex-layout
Browse files Browse the repository at this point in the history
Use correct IFabView
  • Loading branch information
TimLariviere authored Jan 23, 2023
2 parents 24f35ca + 449951d commit 905f1f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fabulous.MauiControls/Views/Layouts/FlexLayout.fs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ module FlexLayoutBuilders =

static member inline FlexLayout<'msg>(?wrap: FlexWrap) =
match wrap with
| None -> CollectionBuilder<'msg, IFabFlexLayout, IView>(FlexLayout.WidgetKey, LayoutOfView.Children)
| None -> CollectionBuilder<'msg, IFabFlexLayout, IFabView>(FlexLayout.WidgetKey, LayoutOfView.Children)

| Some v -> CollectionBuilder<'msg, IFabFlexLayout, IView>(FlexLayout.WidgetKey, LayoutOfView.Children, FlexLayout.Wrap.WithValue(v))
| Some v -> CollectionBuilder<'msg, IFabFlexLayout, IFabView>(FlexLayout.WidgetKey, LayoutOfView.Children, FlexLayout.Wrap.WithValue(v))

[<Extension>]
type FlexLayoutModifiers =
Expand Down

0 comments on commit 905f1f5

Please sign in to comment.