Package 

Class TopAppBarKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit TopAppBar(Function0<Unit> title, Modifier modifier, PaddingValues contentPadding, Function0<Unit> navigationIcon, Function1<RowScope, Unit> actions, Color backgroundColor, Color contentColor, Dp elevation) A wrapper around TopAppBar which supports the setting of contentPadding to add internal padding.
      final static Unit TopAppBarSurface(Modifier modifier, Color backgroundColor, Color contentColor, Dp elevation, Function0<Unit> content)
      final static Unit TopAppBarContent(Function0<Unit> title, Modifier modifier, Function0<Unit> navigationIcon, Function1<RowScope, Unit> actions)
      • Methods inherited from class java.lang.Object

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

      • TopAppBar

         final static Unit TopAppBar(Function0<Unit> title, Modifier modifier, PaddingValues contentPadding, Function0<Unit> navigationIcon, Function1<RowScope, Unit> actions, Color backgroundColor, Color contentColor, Dp elevation)

        A wrapper around TopAppBar which supports the setting of contentPadding to add internal padding. This is especially useful in conjunction with insets.

        For an edge-to-edge layout, typically you would use the com.google.accompanist.insets.WindowInsets.systemBars insets like so below:

      • TopAppBarSurface

         final static Unit TopAppBarSurface(Modifier modifier, Color backgroundColor, Color contentColor, Dp elevation, Function0<Unit> content)
      • TopAppBarContent

         final static Unit TopAppBarContent(Function0<Unit> title, Modifier modifier, Function0<Unit> navigationIcon, Function1<RowScope, Unit> actions)