Skip to content

[ Navigator 2.0 ] showCupertinoModalPopup in Navigator 2.0 ? #83508

@vrman

Description

@vrman

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: invalidIssue is closed as not valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions