MChatFooter constructor

MChatFooter(
  1. bool noMore
)

Implementation

MChatFooter(bool noMore)
    : super(
        triggerOffset: noMore ? 0 : 60,
        clamping: false,
        position: IndicatorPosition.above,
        infiniteOffset: null,
        processedDuration: Duration.zero,
        builder: (BuildContext context, IndicatorState state) {
          return Stack(
            children: <Widget>[
              SizedBox(
                height: state.offset,
                width: double.infinity,
              ),
              Positioned(
                bottom: 0,
                left: 0,
                right: 0,
                child: () {
                  if (noMore) {
                    return Container();
                  } else {
                    return Container(
                      alignment: Alignment.center,
                      width: double.infinity,
                      height: 40,
                      child: const CircularProgressIndicator(),
                    );
                  }
                }(),
              )
            ],
          );
        },
      );