m3FloatingToolbarAllIconsWithTextPreview function

  1. @Preview(name: 'M3FloatingToolbar all icons with text', size: kPreviewSize, wrapper: m3FloatingToolbarBottomCenterPreviewWrapper)
Widget m3FloatingToolbarAllIconsWithTextPreview()

Implementation

@Preview(
  name: 'M3FloatingToolbar all icons with text',
  size: kPreviewSize,
  wrapper: m3FloatingToolbarBottomCenterPreviewWrapper,
)
Widget m3FloatingToolbarAllIconsWithTextPreview() => M3FloatingToolbar(
  actions: [
    M3FloatingToolbarAction(
      icon: Icons.home,
      label: 'Home',
      semanticLabel: 'Home',
      tooltip: 'Home',
      // ignore: no-empty-block
      onPressed: () {},
    ),
    M3FloatingToolbarAction(
      icon: Icons.explore,
      label: 'Explore',
      semanticLabel: 'Explore',
      tooltip: 'Explore',
      selected: true,
      // ignore: no-empty-block
      onPressed: () {},
    ),
    M3FloatingToolbarAction(
      icon: Icons.person,
      label: 'Profile',
      semanticLabel: 'Profile',
      tooltip: 'Profile',
      // ignore: no-empty-block
      onPressed: () {},
    ),
  ],
);