buildValuesSection method Null safety

  1. @protected
Widget buildValuesSection(
  1. BuildContext context,
  2. List<Widget> children,
  3. {bool minify = false}
)

Implementation

@protected
Widget buildValuesSection(
  BuildContext context,
  List<Widget> children, {
  bool minify = false,
}) {
  return Padding(
    padding: minify == true
        ? EdgeInsets.zero
        : EdgeInsets.fromLTRB(
            16.0,
            16.0,
            16.0,
            0.0,
          ),
    child: Material(
      borderRadius: minify == true ? null : BorderRadius.circular(16.0),
      elevation: minify == true ? 0.0 : 2.0,
      child: Container(
        padding: EdgeInsets.all(16.0),
        width: double.infinity,
        child: Column(
          children: children,
        ),
      ),
    ),
  );
}