Skip to content

Commit

Permalink
fix: Corrected router documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Aug 24, 2023
1 parent cb5ae4f commit 309abb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/katana_cli/lib/command/code/tmp/basic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ class ${className}Page extends PageScopedWidget {
/// Used to transition to the ${className}AddPage screen.
///
/// ```dart
/// ${className}Form.addQuery(parameters).push(router); // Push page to ${className}AddPage.
/// ${className}Form.addQuery(parameters).replace(router); // Replace page to ${className}AddPage.
/// router.push(${className}Form.addQuery(parameters)); // Push page to ${className}AddPage.
/// router.replace(${className}Form.addQuery(parameters)); // Replace page to ${className}AddPage.
/// ```
static const addQuery = ${className}AddPage.query;
/// Used to transition to the ${className}EditPage screen.
///
/// ```dart
/// ${className}Form.editQuery(parameters).push(router); // Push page to ${className}EditPage.
/// ${className}Form.editQuery(parameters).replace(router); // Replace page to ${className}EditPage.
/// router.push(${className}Form.editQuery(parameters)); // Push page to ${className}EditPage.
/// router.replace(${className}Form.editQuery(parameters)); // Replace page to ${className}EditPage.
/// ```
static const editQuery = ${className}EditPage.query;
Expand Down
8 changes: 4 additions & 4 deletions packages/katana_cli/lib/command/code/tmp/form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ class ${className}Form extends FormScopedWidget {
/// Used to transition to the ${className}AddPage screen.
///
/// ```dart
/// ${className}Form.addQuery(parameters).push(router); // Push page to ${className}AddPage.
/// ${className}Form.addQuery(parameters).replace(router); // Replace page to ${className}AddPage.
/// router.push(${className}Form.addQuery(parameters)); // Push page to ${className}AddPage.
/// router.replace(${className}Form.addQuery(parameters)); // Replace page to ${className}AddPage.
/// ```
static const addQuery = ${className}AddPage.query;
/// Used to transition to the ${className}EditPage screen.
///
/// ```dart
/// ${className}Form.editQuery(parameters).push(router); // Push page to ${className}EditPage.
/// ${className}Form.editQuery(parameters).replace(router); // Replace page to ${className}EditPage.
/// router.push(${className}Form.editQuery(parameters)); // Push page to ${className}EditPage.
/// router.replace(${className}Form.editQuery(parameters)); // Replace page to ${className}EditPage.
/// ```
static const editQuery = ${className}EditPage.query;
Expand Down

0 comments on commit 309abb3

Please sign in to comment.