Skip to content

Instantly share code, notes, and snippets.

@bentrengrove
Created June 26, 2022 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bentrengrove/a8ee3716a7df136144041134575f5fcb to your computer and use it in GitHub Desktop.
Save bentrengrove/a8ee3716a7df136144041134575f5fcb to your computer and use it in GitHub Desktop.
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun JetsnackApp()
fun rememberJetsnackAppState(
stable scaffoldState: ScaffoldState? = @dynamic rememberScaffoldState(null, null, $composer, 0, 0b0011)
unstable navController: NavHostController? = @dynamic rememberNavController(
$composer = $composer ,
$changed = 8
)
unstable snackbarManager: SnackbarManager? = @dynamic SnackbarManager
unstable resources: Resources? = @dynamic resources($composer, 0)
unstable coroutineScope: CoroutineScope? = @dynamic rememberCoroutineScope(null, $composer, 0, 0b0001)
): JetsnackAppState
fun <get-shouldShowBottomBar>(
stable <this>: JetsnackAppState
): Boolean
readonly fun resources()
restartable skippable scheme("[androidx.compose.ui.UiComposable, [androidx.compose.ui.UiComposable]]") fun JetsnackButton(
stable onClick: Function0<Unit>
stable modifier: Modifier? = @static Companion
stable enabled: Boolean = @static true
stable interactionSource: MutableInteractionSource? = @static remember({
MutableInteractionSource ( )
}
, $composer, 0)
stable shape: Shape? = @static ButtonShape
stable border: BorderStroke? = @static null
unstable backgroundGradient: List<Color>? = @dynamic JetsnackTheme.colors.interactivePrimary
unstable disabledBackgroundGradient: List<Color>? = @dynamic JetsnackTheme.colors.interactiveSecondary
stable contentColor: Color = @dynamic JetsnackTheme.colors.textInteractive
stable disabledContentColor: Color = @dynamic JetsnackTheme.colors.textHelp
stable contentPadding: PaddingValues? = @dynamic ButtonDefaults.ContentPadding
stable content: @[ExtensionFunctionType] Function3<RowScope, Composer, Int, Unit>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun ButtonPreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun RectangleButtonPreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable, [androidx.compose.ui.UiComposable]]") fun JetsnackCard(
stable modifier: Modifier? = @static Companion
stable shape: Shape? = @dynamic MaterialTheme.shapes.medium
stable color: Color = @dynamic JetsnackTheme.colors.uiBackground
stable contentColor: Color = @dynamic JetsnackTheme.colors.textPrimary
stable border: BorderStroke? = @static null
stable elevation: Dp = @static 4.dp
stable content: Function2<Composer, Int, Unit>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun CardPreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun JetsnackDivider(
stable modifier: Modifier? = @static Companion
stable color: Color = @dynamic JetsnackTheme.colors.uiBorder.copy(
alpha = DividerAlpha
)
stable thickness: Dp = @static 1.dp
stable startIndent: Dp = @static 0.dp
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun DividerPreview()
restartable scheme("[androidx.compose.ui.UiComposable]") fun FilterBar(
unstable filters: List<Filter>
stable onShowFilters: Function0<Unit>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun FilterChip(
stable filter: Filter
stable modifier: Modifier? = @static Companion
stable shape: Shape? = @dynamic MaterialTheme.shapes.small
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun FilterDisabledPreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun FilterEnabledPreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun JetsnackGradientTintedIconButton(
stable imageVector: ImageVector
stable onClick: Function0<Unit>
stable contentDescription: String?
stable modifier: Modifier? = @static Companion
unstable colors: List<Color>? = @dynamic JetsnackTheme.colors.interactiveSecondary
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun GradientTintedIconButtonPreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable, [androidx.compose.ui.UiComposable]]") fun VerticalGrid(
stable modifier: Modifier? = @static Companion
stable columns: Int = @static 2
stable content: Function2<Composer, Int, Unit>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun QuantitySelector(
stable count: Int
stable decreaseItemCount: Function0<Unit>
stable increaseItemCount: Function0<Unit>
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun QuantitySelectorPreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun QuantitySelectorPreviewRtl()
restartable skippable scheme("[androidx.compose.ui.UiComposable, [androidx.compose.ui.UiComposable], [androidx.compose.ui.UiComposable], [androidx.compose.ui.UiComposable], [androidx.compose.ui.UiComposable], [androidx.compose.ui.UiComposable], [androidx.compose.ui.UiComposable]]") fun JetsnackScaffold(
stable modifier: Modifier? = @static Companion
stable scaffoldState: ScaffoldState? = @dynamic rememberScaffoldState(null, null, $composer, 0, 0b0011)
stable topBar: Function2<Composer, Int, Unit>? = @static ComposableSingletons$ScaffoldKt.lambda-1
stable bottomBar: Function2<Composer, Int, Unit>? = @static ComposableSingletons$ScaffoldKt.lambda-2
stable snackbarHost: Function3<SnackbarHostState, Composer, Int, Unit>? = @static ComposableSingletons$ScaffoldKt.lambda-3
stable floatingActionButton: Function2<Composer, Int, Unit>? = @static ComposableSingletons$ScaffoldKt.lambda-4
stable floatingActionButtonPosition: FabPosition = @dynamic Companion.End
stable isFloatingActionButtonDocked: Boolean = @static false
stable drawerContent: @[ExtensionFunctionType] Function3<ColumnScope, Composer, Int, Unit>? = @static null
stable drawerShape: Shape? = @dynamic MaterialTheme.shapes.large
stable drawerElevation: Dp = @dynamic DrawerDefaults.Elevation
stable drawerBackgroundColor: Color = @dynamic JetsnackTheme.colors.uiBackground
stable drawerContentColor: Color = @dynamic JetsnackTheme.colors.textSecondary
stable drawerScrimColor: Color = @dynamic JetsnackTheme.colors.uiBorder
stable backgroundColor: Color = @dynamic JetsnackTheme.colors.uiBackground
stable contentColor: Color = @dynamic JetsnackTheme.colors.textSecondary
stable content: Function3<PaddingValues, Composer, Int, Unit>
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun JetsnackSnackbar(
unstable snackbarData: SnackbarData
stable modifier: Modifier? = @static Companion
stable actionOnNewLine: Boolean = @static false
stable shape: Shape? = @dynamic MaterialTheme.shapes.small
stable backgroundColor: Color = @dynamic JetsnackTheme.colors.uiBackground
stable contentColor: Color = @dynamic JetsnackTheme.colors.textSecondary
stable actionColor: Color = @dynamic JetsnackTheme.colors.brand
stable elevation: Dp = @static 6.dp
)
fun <get-gradientWidth>()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SnackCollection(
stable snackCollection: SnackCollection
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
stable index: Int = @static 0
stable highlight: Boolean = @static true
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun HighlightedSnacks(
stable index: Int
unstable snacks: List<Snack>
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun Snacks(
unstable snacks: List<Snack>
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SnackItem(
stable snack: Snack
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun HighlightSnackItem(
stable snack: Snack
stable onSnackClick: Function1<Long, Unit>
stable index: Int
unstable gradient: List<Color>
stable gradientWidth: Float
stable scroll: Int
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SnackImage(
stable imageUrl: String
stable contentDescription: String?
stable modifier: Modifier? = @static Companion
stable elevation: Dp = @static 0.dp
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SnackCardPreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable, [androidx.compose.ui.UiComposable]]") fun JetsnackSurface(
stable modifier: Modifier? = @static Companion
stable shape: Shape? = @static RectangleShape
stable color: Color = @dynamic JetsnackTheme.colors.uiBackground
stable contentColor: Color = @dynamic JetsnackTheme.colors.textSecondary
stable border: BorderStroke? = @static null
stable elevation: Dp = @static 0.dp
stable content: Function2<Composer, Int, Unit>
)
fun getBackgroundColorForElevation(
stable color: Color
stable elevation: Dp
): Color
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun DestinationBar(
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun PreviewDestinationBar()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun Feed(
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun Feed(
unstable snackCollections: List<SnackCollection>
unstable filters: List<Filter>
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun SnackCollectionList(
unstable snackCollections: List<SnackCollection>
unstable filters: List<Filter>
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun HomePreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun FilterScreen(
stable onDismiss: Function0<Unit>
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun FilterChipSection(
stable title: String
unstable filters: List<Filter>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SortFiltersSection(
stable sortState: String
stable onFilterChange: Function1<Filter, Unit>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SortFilters(
unstable sortFilters: List<Filter>? = @dynamic SnackRepo.getSortFilters()
stable sortState: String
stable onChanged: Function1<Filter, Unit>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun MaxCalories(
stable sliderPosition: Float
stable onValueChanged: Function1<Float, Unit>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun FilterTitle(
stable text: String
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SortOption(
stable text: String
stable icon: ImageVector?
stable onClickOption: Function0<Unit>
stable selected: Boolean
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun FilterScreenPreview()
restartable scheme("[androidx.compose.ui.UiComposable]") fun JetsnackBottomBar(
unstable tabs: Array<HomeSections>
stable currentRoute: String
stable navigateToRoute: Function1<String, Unit>
stable color: Color = @dynamic JetsnackTheme.colors.iconPrimary
stable contentColor: Color = @dynamic JetsnackTheme.colors.iconInteractive
)
restartable scheme("[androidx.compose.ui.UiComposable, [androidx.compose.ui.UiComposable], [androidx.compose.ui.UiComposable]]") fun JetsnackBottomNavLayout(
stable selectedIndex: Int
stable itemCount: Int
unstable animSpec: AnimationSpec<Float>
stable indicator: @[ExtensionFunctionType] Function3<BoxScope, Composer, Int, Unit>
stable modifier: Modifier? = @static Companion
stable content: Function2<Composer, Int, Unit>
)
restartable scheme("[androidx.compose.ui.UiComposable, [androidx.compose.ui.UiComposable], [androidx.compose.ui.UiComposable]]") fun JetsnackBottomNavigationItem(
stable icon: @[ExtensionFunctionType] Function3<BoxScope, Composer, Int, Unit>
stable text: @[ExtensionFunctionType] Function3<BoxScope, Composer, Int, Unit>
stable selected: Boolean
stable onSelected: Function0<Unit>
unstable animSpec: AnimationSpec<Float>
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable, [androidx.compose.ui.UiComposable], [androidx.compose.ui.UiComposable]]") fun JetsnackBottomNavItemLayout(
stable icon: @[ExtensionFunctionType] Function3<BoxScope, Composer, Int, Unit>
stable text: @[ExtensionFunctionType] Function3<BoxScope, Composer, Int, Unit>
stable animationProgress: Float
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun JetsnackBottomNavIndicator(
stable strokeWidth: Dp = @static 2.dp
stable color: Color = @dynamic JetsnackTheme.colors.iconInteractive
stable shape: Shape? = @static BottomNavIndicatorShape
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun JetsnackBottomNavPreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun Profile(
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun ProfilePreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun Cart(
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
unstable viewModel: CartViewModel? = @dynamic viewModel(null, null, Companion.provideFactory(), $composer, 0b001000000000, 0b0011)
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun Cart(
unstable orderLines: List<OrderLine>
stable removeSnack: Function1<Long, Unit>
stable increaseItemCount: Function1<Long, Unit>
stable decreaseItemCount: Function1<Long, Unit>
stable inspiredByCart: SnackCollection
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun CartContent(
unstable orderLines: List<OrderLine>
stable removeSnack: Function1<Long, Unit>
stable increaseItemCount: Function1<Long, Unit>
stable decreaseItemCount: Function1<Long, Unit>
stable inspiredByCart: SnackCollection
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun CartItem(
stable orderLine: OrderLine
stable removeSnack: Function1<Long, Unit>
stable increaseItemCount: Function1<Long, Unit>
stable decreaseItemCount: Function1<Long, Unit>
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SummaryItem(
stable subtotal: Long
stable shippingCosts: Long
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun CheckoutBar(
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun CartPreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable, [androidx.compose.ui.UiComposable], [androidx.compose.ui.UiComposable]]") fun SwipeDismissItem(
stable modifier: Modifier? = @static Companion
unstable directions: Set<DismissDirection>? = @dynamic setOf(DismissDirection.EndToStart)
stable enter: EnterTransition? = @static expandVertically()
stable exit: ExitTransition? = @static shrinkVertically()
stable background: Function3<@[ParameterName(name = 'offset')] Dp, Composer, Int, Unit>
stable content: Function3<@[ParameterName(name = 'isDismissed')] Boolean, Composer, Int, Unit>
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun SearchCategories(
unstable categories: List<SearchCategoryCollection>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SearchCategoryCollection(
stable collection: SearchCategoryCollection
stable index: Int
stable modifier: Modifier? = @static Companion
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun SearchCategory(
stable category: SearchCategory
unstable gradient: List<Color>
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SearchCategoryPreview()
restartable scheme("[androidx.compose.ui.UiComposable]") fun SearchResults(
unstable searchResults: List<Snack>
unstable filters: List<Filter>
stable onSnackClick: Function1<Long, Unit>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SearchResult(
stable snack: Snack
stable onSnackClick: Function1<Long, Unit>
stable showDivider: Boolean
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun NoResults(
stable query: String
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SearchResultPreview()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun Search(
stable onSnackClick: Function1<Long, Unit>
stable modifier: Modifier? = @static Companion
stable state: SearchState? = @dynamic rememberSearchState(null, false, false, null, null, null, null, $composer, 0, 0b01111111)
)
fun rememberSearchState(
stable query: TextFieldValue? = @dynamic TextFieldValue(
text = ""
)
stable focused: Boolean = @static false
stable searching: Boolean = @static false
unstable categories: List<SearchCategoryCollection>? = @dynamic SearchRepo.getCategories()
unstable suggestions: List<SearchSuggestionGroup>? = @dynamic SearchRepo.getSuggestions()
unstable filters: List<Filter>? = @dynamic SnackRepo.getFilters()
unstable searchResults: List<Snack>? = @dynamic emptyList()
): SearchState
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SearchBar(
stable query: TextFieldValue
stable onQueryChange: Function1<TextFieldValue, Unit>
stable searchFocused: Boolean
stable onSearchFocusChange: Function1<Boolean, Unit>
stable onClearQuery: Function0<Unit>
stable searching: Boolean
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SearchHint()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SearchBarPreview()
restartable scheme("[androidx.compose.ui.UiComposable]") fun SearchSuggestions(
unstable suggestions: List<SearchSuggestionGroup>
stable onSuggestionSelect: Function1<String, Unit>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SuggestionHeader(
stable name: String
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun Suggestion(
stable suggestion: String
stable onSuggestionSelect: Function1<String, Unit>
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun PreviewSuggestions()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SnackDetail(
stable snackId: Long
stable upPress: Function0<Unit>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun Header()
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun Up(
stable upPress: Function0<Unit>
)
restartable scheme("[androidx.compose.ui.UiComposable]") fun Body(
unstable related: List<SnackCollection>
stable scroll: ScrollState
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun Title(
stable snack: Snack
stable scrollProvider: Function0<Int>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun Image(
stable imageUrl: String
stable scrollProvider: Function0<Int>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable, [androidx.compose.ui.UiComposable]]") fun CollapsingImageLayout(
stable collapseFractionProvider: Function0<Float>
stable modifier: Modifier? = @static Companion
stable content: Function2<Composer, Int, Unit>
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun CartBottomBar(
stable modifier: Modifier? = @static Companion
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun SnackDetailPreview()
restartable skippable scheme("[0, [0]]") fun JetsnackTheme(
stable darkTheme: Boolean = @dynamic isSystemInDarkTheme($composer, 0)
stable content: Function2<Composer, Int, Unit>
)
fun <get-colors>(
unused stable <this>: JetsnackTheme
): JetsnackColors
restartable skippable scheme("[0, [0]]") fun ProvideJetsnackColors(
stable colors: JetsnackColors
stable content: Function2<Composer, Int, Unit>
)
fun mirroringIcon(
stable ltrIcon: ImageVector
stable rtlIcon: ImageVector
): ImageVector
fun mirroringBackIcon()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment