),

],

);

);

You can fix this application by introducing your own hero controller scopes.

import

'package:flutter/material.dart'

void

main

()

runApp

MaterialApp

builder:

BuildContext

context

Widget

child

// Builds two parallel navigators.

return

Stack

children:

Widget

>[

HeroControllerScope

controller:

MaterialApp

createMaterialHeroController

(),

child:

Navigator

onGenerateRoute:

RouteSettings

settings