Nipodemos

fix(docs): fix page argument in GetPageRoute that needs to be a funcion

@@ -346,8 +346,6 @@ void main () { @@ -346,8 +346,6 @@ void main () {
346 ) 346 )
347 ) 347 )
348 } 348 }
349 -  
350 -  
351 ``` 349 ```
352 350
353 #### SmartManagement.full 351 #### SmartManagement.full
@@ -496,7 +496,7 @@ Navigator( @@ -496,7 +496,7 @@ Navigator(
496 onGenerateRoute: (settings) { 496 onGenerateRoute: (settings) {
497 if (settings.name == '/') { 497 if (settings.name == '/') {
498 return GetPageRoute( 498 return GetPageRoute(
499 - page: Scaffold( 499 + page: () => Scaffold(
500 appBar: AppBar( 500 appBar: AppBar(
501 title: Text("Main"), 501 title: Text("Main"),
502 ), 502 ),
@@ -513,7 +513,7 @@ Navigator( @@ -513,7 +513,7 @@ Navigator(
513 ); 513 );
514 } else if (settings.name == '/second') { 514 } else if (settings.name == '/second') {
515 return GetPageRoute( 515 return GetPageRoute(
516 - page: Center( 516 + page: () => Center(
517 child: Scaffold( 517 child: Scaffold(
518 appBar: AppBar( 518 appBar: AppBar(
519 title: Text("Main"), 519 title: Text("Main"),
@@ -497,7 +497,7 @@ Navigator( @@ -497,7 +497,7 @@ Navigator(
497 onGenerateRoute: (settings) { 497 onGenerateRoute: (settings) {
498 if (settings.name == '/') { 498 if (settings.name == '/') {
499 return GetPageRoute( 499 return GetPageRoute(
500 - page: Scaffold( 500 + page: () => Scaffold(
501 appBar: AppBar( 501 appBar: AppBar(
502 title: Text("Main"), 502 title: Text("Main"),
503 ), 503 ),
@@ -514,7 +514,7 @@ Navigator( @@ -514,7 +514,7 @@ Navigator(
514 ); 514 );
515 } else if (settings.name == '/second') { 515 } else if (settings.name == '/second') {
516 return GetPageRoute( 516 return GetPageRoute(
517 - page: Center( 517 + page: () => Center(
518 child: Scaffold( 518 child: Scaffold(
519 appBar: AppBar( 519 appBar: AppBar(
520 title: Text("Main"), 520 title: Text("Main"),
@@ -490,7 +490,7 @@ Navigator( @@ -490,7 +490,7 @@ Navigator(
490 onGenerateRoute: (settings) { 490 onGenerateRoute: (settings) {
491 if (settings.name == '/') { 491 if (settings.name == '/') {
492 return GetPageRoute( 492 return GetPageRoute(
493 - page: Scaffold( 493 + page: () => Scaffold(
494 appBar: AppBar( 494 appBar: AppBar(
495 title: Text("Principal"), 495 title: Text("Principal"),
496 ), 496 ),
@@ -507,7 +507,7 @@ Navigator( @@ -507,7 +507,7 @@ Navigator(
507 ); 507 );
508 } else if (settings.name == '/segunda') { 508 } else if (settings.name == '/segunda') {
509 return GetPageRoute( 509 return GetPageRoute(
510 - page: Center( 510 + page: () => Center(
511 child: Scaffold( 511 child: Scaffold(
512 appBar: AppBar( 512 appBar: AppBar(
513 title: Text("Principal"), 513 title: Text("Principal"),