-
Notifications
You must be signed in to change notification settings - Fork 30.2k
[ Navigator 2.0 ] showCupertinoModalPopup in Navigator 2.0 ? #83508
Copy link
Copy link
Closed
Labels
r: invalidIssue is closed as not validIssue is closed as not valid
Description
is this possible to show a showCupertinoModalPopup with Navigator 2.0 ? i tried to put it as child inside MaterialPage() but its not possible , it says :
The argument type 'Future<dynamic>' can't be assigned to the parameter type 'Widget'.
MaterialPage(
key: ValueKey('dialog'),
name: 'dialog',
child: showCupertinoModalPopup(
context: context,
useRootNavigator: false,
builder: (context){
return CustomCupertinoPickNationalId(
title: title,
firstColor: firstColor,
secondColor: secondColor,
choosePeriod: period,
);
}
);
is there any solution to do this in Navigator 2.0 ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
r: invalidIssue is closed as not validIssue is closed as not valid