createLargeTitleActions static method

KeyedSubtree? createLargeTitleActions({
  1. required GlobalKey<State<StatefulWidget>> largeTitleActionsKey,
  2. required Widget? largeTitleActions,
  3. required EdgeInsetsDirectional? padding,
})

Implementation

static KeyedSubtree? createLargeTitleActions({
  required GlobalKey largeTitleActionsKey,
  required Widget? largeTitleActions,
  required EdgeInsetsDirectional? padding,
}) {
  if (largeTitleActions == null) {
    return null;
  }

  return KeyedSubtree(
    key: largeTitleActionsKey,
    child: Padding(
      padding: EdgeInsetsDirectional.only(
        end: padding?.end ?? 0,
      ),
      child: IconTheme.merge(
        data: const IconThemeData(
          size: 32.0,
        ),
        child: largeTitleActions,
      ),
    ),
  );
}