Custom Error screen

Widget getErrorWidget(FlutterErrorDetails error) {
  return Center(
    child: Text("${error.exception}"),
  );
}

Full Sample

Sumber

https://gist.github.com/wouterhardeman/1f939e661e166a6ec119269c13bcbfba

Last updated

Was this helpful?