createLargeTitleActions static method
KeyedSubtree?
createLargeTitleActions({
- required GlobalKey<
State< largeTitleActionsKey,StatefulWidget> > - required Widget? largeTitleActions,
- 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,
),
),
);
}