getLoadingWidget method

Widget getLoadingWidget(
  1. BuildContext context
)

Implementation

Widget getLoadingWidget(BuildContext context) {
  return Container(
    padding: EdgeInsets.fromLTRB(0, 0, 0, 100),
    color: Theme.of(context).scaffoldBackgroundColor,
    width: double.infinity,
    height: double.infinity,
    child: Center(
      child: CircularProgressIndicator(
        // 圆形进度条
        strokeWidth: 4.0,
        backgroundColor: Colors.blue,
        valueColor: AlwaysStoppedAnimation<Color>(_appBarColor),
      ),
    ),
  );
}