Package 

Class PollCreationHeaderKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit PollCreationHeader(Modifier modifier, Color color, Shape shape, Dp elevation, Function0<Unit> onBackPressed, Boolean enabledCreation, Function0<Unit> onPollCreateClicked, Function1<RowScope, Unit> leadingContent, Function1<RowScope, Unit> centerContent, Function1<RowScope, Unit> trailingContent) Poll's creation header (toolbar) Composable that consist of several components.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • PollCreationHeader

        @Composable() final static Unit PollCreationHeader(Modifier modifier, Color color, Shape shape, Dp elevation, Function0<Unit> onBackPressed, Boolean enabledCreation, Function0<Unit> onPollCreateClicked, Function1<RowScope, Unit> leadingContent, Function1<RowScope, Unit> centerContent, Function1<RowScope, Unit> trailingContent)

        Poll's creation header (toolbar) Composable that consist of several components.

        Parameters:
        modifier - The Modifier for styling.
        color - The color of the surface.
        shape - The shape of the surface.
        elevation - The elevation of the surface.
        onBackPressed - A lambda that will be executed if users click the back button on the default leadingContent.
        enabledCreation - Represents if user can click the creation button or not.
        onPollCreateClicked - A lambda that will be executed if users click the poll creation button.
        leadingContent - Customizable composable function that represents the leading content of a poll creation item, usually holding a back action button.
        centerContent - Customizable composable function that represents the center content of a poll creation item, usually holding information about the title.
        trailingContent - Customizable composable function that represents the trailing content of a poll creation item, usually holding the creation action button.