flutter_exception_ui_custom

Last updated:

0 purchases

flutter_exception_ui_custom Image
flutter_exception_ui_custom Images
Add to Cart

Description:

flutter exception ui custom

flutter_exception_ui_custom #
Use coustom Ui to show uncatch exception
Getting Started #
This project is a starting point for a Flutter,When an error occurs, replace the original red error reporting interface with the custom UI interface.
##Simple Use
ExceptionCatchUtil.init(() {
runApp(MaterialApp());
});
copied to clipboard
##Custom Error UI
Widget widget = Scaffold(
body: Center(
child: Text("Custom Error UI"),
),
);

ExceptionCatchUtil.init(() {
runApp(MaterialApp());
},customErrorUI: widget);
copied to clipboard
##Custom Error UI and print error
Widget widget = Scaffold(
body: Center(
child: Text("Custom Error UI"),
),
);

ExceptionCatchUtil.init(() {
runApp(MaterialApp());
},customErrorUI: widget,errorCallback: (Object error, StackTrace stackTrace){
print("error "+error.toString());
print("stackTrace "+stackTrace.toString());
});
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.