showDeveloperOptions function
- required BuildContext context,
- required AsyncCallback? onResetDeveloperOptions,
- ChildrenConsumerBuilder? children,
Show the developer options bottom sheet
Implementation
Future<void> showDeveloperOptions({
required BuildContext context,
required AsyncCallback? onResetDeveloperOptions,
ChildrenConsumerBuilder? children,
}) {
final capturedMediaQuery = MediaQuery.of(context);
return showModalBottomSheet(
context: context,
builder: (context) => MediaQuery(
data: capturedMediaQuery,
child: DeveloperOptionsSheet(
onResetDeveloperOptions: onResetDeveloperOptions,
children: children,
),
),
isScrollControlled: true,
backgroundColor: Colors.transparent,
);
}