build method
Implementation
@override
Widget build(BuildContext context) {
Color localForeground = color ?? Theme.of(context).colorScheme.onPrimary;
Color localBackground = background ?? Theme.of(context).colorScheme.primary;
return Container(
padding: const EdgeInsets.symmetric(vertical: 8),
width: double.infinity,
color: localBackground,
child: SafeArea(
child: expanded != null
? ExpandableTheme(
data: ExpandableThemeData(
iconColor: localForeground,
collapseIcon: FontAwesomeIcons.caretUp,
expandIcon: FontAwesomeIcons.caretDown,
iconSize: 16,
iconPadding: const EdgeInsets.only(right: 5),
),
child: ExpandableNotifier(
child: Column(
children: <Widget>[
ExpandableButton(
child: FollyUserHeader<O>(
name,
email,
companyName,
localForeground,
localBackground,
menuItems,
onMenuSelect,
expandable: true,
),
),
Expandable(
collapsed: Container(),
expanded: expanded!,
),
],
),
),
)
: FollyUserHeader<O>(
name,
email,
companyName,
localForeground,
localBackground,
menuItems,
onMenuSelect,
),
),
);
}