render method

Widget render(
  1. BuildContext context,
  2. OwlnextLoadingState state
)

Implementation

Widget render(BuildContext context, OwlnextLoadingState state) {
  return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) {
    return Align(
      child: SizedBox(
        width: state.widget.size ?? 40,
        height: state.widget.size ?? 40,
        child: CircularProgressIndicator(
          color: state.widget.color ?? Theme.of(context).colorScheme.primary,
        ),
      ),
    );
  });
}