-
The concept that workflows can produce any number of renderings that are bound to UI elsewhere is extremely powerful. The possibilities are endless! But what kind of "container" renderings do you actually use? Personally I only have a few, but use them pretty much everywhere.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
That's a pretty similar list to ours, except that we also have an explosion of subclasses of (a fork of) Interesting to see |
Beta Was this translation helpful? Give feedback.
-
Keyed sounds really interesting, if you're inclined to share it. Our problem is a combination of the old system's need to subclass Subclasses:
Today we're shipping stuff like this: typealias RetailTabNavigationRoot =
OrientationLockContainerScreen<
MortarDialogContainerScreen<
MortarDialogContainerScreen<
PosBarsContainerScreen<
PosCardContainerScreen<
PosBodyAndOverlaysScreen<
PosSheetContainerScreen<
PosCardContainerScreen<
RetailTabNavigationContainerScreen<Screen>,
Screen
>,
Screen
>,
Screen
>,
Screen
>
>
>
>
> Which we should be able to reduce to this: typealias RetailTabNavigationRoot =
OrientationLockContainerScreen<
PosBodyAndOverlaysScreen<
PosBarsContainerScreen<
PosBodyAndOverlaysScreen<
RetailTabNavigationContainerScreen<Screen>,
Screen
>,
>
>
> Where |
Beta Was this translation helpful? Give feedback.
Keyed sounds really interesting, if you're inclined to share it.
Our problem is a combination of the old system's need to subclass
ModalViewContainer
for every new type ofDialog
, plus a need to restrict the area of some modals to ensure they don't cover our tutorial and status bars.Subclasses:
PosCardContainer : ModalViewContainer
is basically thePanelContainer
from the old sample code.PosSheetContainer : ModalViewContainer
does full screen dialogs.BottomSheetContainer : ModalViewContainer
uses androidxBottomSheet
.MortarDialogContainer
provides horrible legacy support that I don't want to talk about, scars are too deep.Today we're shipping stuff like this: