ScaffoldStates
Author: @Jeluchu
This component is useful to check the status of a response to a request to the service, and depending on the result it can display information, an error or the loading progress
Parameters
optional Modifier for the root of the Scaffold
state of this scaffold widget. It contains the state of the screen, e.g. variables to provide manual control over the drawer behavior, sizes of components, etc
top app bar of the screen. Consider using TopAppBar.
bottom bar of the screen. Consider using BottomAppBar.
component to host Snackbars that are pushed to be shown via SnackbarHostState.showSnackbar. Usually it's a SnackbarHost
Main action button of your screen. Consider using FloatingActionButton for this slot.
position of the FAB on the screen. See FabPosition for possible options available.
whether floatingActionButton should overlap with bottomBar for half a height, if bottomBar exists. Ignored if there's no bottomBar or no floatingActionButton.
background of the scaffold body
color of the content in scaffold body. Defaults to either the matching content color for backgroundColor, or, if it is not a color from the theme, this will keep the same value set above this Surface.
controls the status of whether the request to the service is loading or has already finished.
the list of items to be displayed within the LazyColumn or LazyRow
content when service response is success of your screen. The lambda receives an PaddingValues that should be applied to the content root via Modifier.padding to properly offset top and bottom bars. If you're using VerticalScroller, apply this modifier to the child of the scroller, and not on the scroller itself.
content when service response is failed of your screen. The lambda receives an PaddingValues that should be applied to the content root via Modifier.padding to properly offset top and bottom bars. If you're using VerticalScroller, apply this modifier to the child of the scroller, and not on the scroller itself.
content when service response is loading of your screen. The lambda receives an PaddingValues that should be applied to the content root via Modifier.padding to properly offset top and bottom bars. If you're using VerticalScroller, apply this modifier to the child of the scroller, and not on the scroller itself.