yourWidget method

  1. @override
Widget yourWidget(
  1. BuildContext context,
  2. FaderModel? value
)
override

Implementation

@override
Widget yourWidget(BuildContext context, FaderModel? value) {
  if (value == null) {
    return text(app, context, "No fademodel");
  } else {
    var items = value.items!;
    var member = AccessBloc.member(context);
    var images = items.map((li) => li.image).toList();
    var positionsAndSizes = items.map((element) => element.posSize).toList();
    var actions = items.map((element) => element.action).toList();
    var orientation = MediaQuery.of(context).orientation;
    return TheImageGF(
        app,
        member,
        value.background,
        images,
        positionsAndSizes,
        actions,
        orientation,
        value.imageSeconds,
        value.animationMilliseconds);
  }
}