-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#4216Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: go_routerThe go_router packageThe go_router packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
Right now there's two parameters for handling errors, errorPageBuilder and errorBuilder. Users might prefer to handle the exception programmatically and navigate to an app location rather than by building a widget for the error screen. For example, we could provide an API that takes a callback:
GoRouter(
onError: (Exception e) {
// Handle the error...
return '/home?dialogMessage="Page not found."';
}Skogsfrae, cedvdb, haashem, Desync-o-tron, FabianVarela and 18 moreomar-hanafyomar-hanafyomar-hanafy
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: go_routerThe go_router packageThe go_router packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.