Skip to content

Commit

Permalink
Changed push to go
Browse files Browse the repository at this point in the history
  • Loading branch information
ActiveChooN committed Dec 2, 2024
1 parent 75e4f55 commit 2d62523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pages/text_generation/text_generation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class _TextGenerationPageState extends State<TextGenerationPage> {
child: const Text("Close"),
onPressed: () => GoRouter.of(context).canPop()
? GoRouter.of(context).pop()
: GoRouter.of(context).push('/models'),
: GoRouter.of(context).go('/models'),
),
),
]
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/import_model_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ImportModelButton extends StatelessWidget {
return FilledDropDownButton(
title: const Text('Import model'),
items: [
MenuFlyoutItem(text: const Text('Hugging Face'), onPressed: () { GoRouter.of(context).push('/models/import'); }),
MenuFlyoutItem(text: const Text('Hugging Face'), onPressed: () { GoRouter.of(context).go('/models/import'); }),
MenuFlyoutItem(text: const Text('Local disk'), onPressed: () { addProject(context); }),
]
);
Expand Down

0 comments on commit 2d62523

Please sign in to comment.