FCCExpandableSection constructor
const
FCCExpandableSection({
- Key? key,
- required String title,
- required bool expanded,
- required VoidCallback onHeaderTap,
- required Widget child,
- Widget? customTitle,
- IconData expandIcon = Icons.expand_more,
- double expandedTurns = 0.5,
- Duration duration = const Duration(milliseconds: 300),
- EdgeInsets padding = EdgeInsets.zero,
- EdgeInsets titlePadding = EdgeInsets.zero,
- Color? titleColor,
- TextStyle? titleTextStyle,
- Curve animationCurve = Curves.linear,
- Widget? leadingIcon,
- List<
BoxShadow> ? boxShadow, - double borderRadius = 12.0,
- bool showDivider = false,
- ThemeData? theme,
- Color? backgroundColor,
- VoidCallback? onExpand,
- VoidCallback? onCollapse,
- bool scrollOnExpand = false,
- ScrollController? scrollController,
- double scrollOffset = -40.0,
- bool isNeumorphic = true,
- NeumorphicStyle neumorphicStyle = NeumorphicStyle.lowered,
- double neumorphicBorderRadius = 24.0,
- EdgeInsets neumorphicPadding = const EdgeInsets.fromLTRB(10, 5, 10, 5),
- Color? neumorphicBaseColor,
- double? neumorphicHeight,
- double neumorphicIntensity = 0.35,
Implementation
const FCCExpandableSection({
super.key,
required this.title,
required this.expanded,
required this.onHeaderTap,
required this.child,
this.customTitle,
this.expandIcon = Icons.expand_more,
this.expandedTurns = 0.5,
this.duration = const Duration(milliseconds: 300),
this.padding = EdgeInsets.zero,
this.titlePadding = EdgeInsets.zero,
this.titleColor,
this.titleTextStyle,
this.animationCurve = Curves.linear,
this.leadingIcon,
this.boxShadow,
this.borderRadius = 12.0,
this.showDivider = false,
this.theme,
this.backgroundColor,
this.onExpand,
this.onCollapse,
this.scrollOnExpand = false,
this.scrollController,
this.scrollOffset = -40.0,
// Neumorphic defaults
this.isNeumorphic = true,
this.neumorphicStyle = NeumorphicStyle.lowered,
this.neumorphicBorderRadius = 24.0,
this.neumorphicPadding = const EdgeInsets.fromLTRB(10, 5, 10, 5),
this.neumorphicBaseColor,
this.neumorphicHeight,
this.neumorphicIntensity = 0.35,
});