netWork static method

Widget netWork(
  1. String? path
)

网络图片

Implementation

static Widget netWork(String? path) {
  if (!FFEmpty.stringIsEmpty(path) && path!.startsWith("http")) {
    return Image(
      fit: BoxFit.fill,
      image: NetworkImage(path),
    );
  } else {
    return Container();
  }
}