route library

Classes

SingleSelectionPage<T>
A page which shows a CupertinoSingleSelection, like the iOS settings app.

Functions

showCupertinoSingleSelectionPage<T>({required BuildContext context, required Widget title, required List<SelectionItem<T>> children, T? initial, ValueChanged<T?>? onChanged, bool useRootNavigator = true, Widget? header, Widget? footer, CupertinoListSectionType? headerType, CupertinoListSectionType? footerType, AppType routeType = AppType.cupertino, AppType scaffoldType = AppType.cupertino}) Future<T?>
Opens a SingleSelectionPage. initial is the initial value that will be selected upon opening the page onChanged is called every time the user presses an option. title is the widget to be displayed on the AppBar/CupertinoNavigationBar of the scaffold. routeType determines whether a MaterialPageRoute or a CupertinoPageRoute is used. scaffoldType determines whether a Scaffold or a CupertinoPageScaffold is used.