-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.f: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Steps to Reproduce
import 'package:flutter/material.dart';
final GlobalKey<NavigatorState> key = GlobalKey<NavigatorState>();
void main() => runApp(MaterialApp(
home: Row(
children: [
Container(width: 100, color: Colors.red,),
Container(width: 100 ,child: Navigator(
key: key,
onGenerateRoute: (RouteSettings settings) {
return MaterialPageRoute<void>(builder: (_) {
return Scaffold(
appBar: AppBar(title: Text(settings.name?? '')),
body: ElevatedButton(
child: Text(settings.name ?? ''),
onPressed: () {
key.currentState!.pushNamed('/a');
},
),
);
});
},
))
]
),
));- press the button and the page transition will move outside of the navigator container.
Logs
Logs
Ali-Fadaei and GP4cK
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.f: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.