buildUseCase method

  1. @override
Widget buildUseCase(
  1. BuildContext context,
  2. Widget child,
  3. int setting
)
override

Wraps use cases with a custom widget depending on the addon setting that is obtained from valueFromQueryGroup.

Implementation

@override
Widget buildUseCase(
  BuildContext context,
  Widget child,
  int setting,
) {
  return Stack(
    children: [
      GridPaper(
        color: Colors.grey.withOpacity(0.5),
        interval: setting.toDouble(),
        subdivisions: 2,
        child: Container(),
      ),
      child,
    ],
  );
}