nestedPage top-level constant

NestedPage const nestedPage

Pages for use in nested navigators rather than at the top level.

If used with this, it will not be accessible via deep linking.

トップレベルではなくネストされたナビゲーターで用いるためのページ。

これで使用した場合、ディープリンクでのアクセスができなくなります。

@NestedPage()
class TestWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Test")),
      body: Center(child: Text("Body")),
    );
  }
}

Implementation

const nestedPage = NestedPage();