feat(import): enhance recipe creation by passing both markdown and image URL from import
This commit is contained in:
@@ -78,8 +78,11 @@ class _RecipeImportTabState extends ConsumerState<RecipeImportTab> {
|
||||
);
|
||||
|
||||
if (!mounted) return;
|
||||
// Pass markdown as GoRouter extra — CreateRecipeScreen picks it up.
|
||||
context.push('/recipes/create', extra: result.markdown);
|
||||
// Pass both markdown and imageUrl so CreateRecipeScreen can pre-fill both.
|
||||
context.push('/recipes/create', extra: {
|
||||
'markdown': result.markdown,
|
||||
'imageUrl': result.imageUrl,
|
||||
});
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
setState(() => _error = mapErrorToUserMessage(e, context));
|
||||
|
||||
Reference in New Issue
Block a user