got markdown working
This commit is contained in:
parent
05a418cc67
commit
7991c3070d
2 changed files with 13 additions and 1 deletions
|
@ -2,6 +2,9 @@ import 'package:flutter/material.dart';
|
|||
import 'package:pizzaplanner/entities/PizzaEvent.dart';
|
||||
import 'package:pizzaplanner/entities/PizzaRecipe/RecipeStep.dart';
|
||||
|
||||
import 'package:flutter_markdown/flutter_markdown.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class RecipeStepInstructionPageArguments {
|
||||
final PizzaEvent pizzaEvent;
|
||||
final RecipeStep recipeStep;
|
||||
|
@ -45,7 +48,13 @@ class RecipeStepInstructionState extends State<RecipeStepInstructionPage> {
|
|||
],
|
||||
),
|
||||
children: <Widget>[
|
||||
|
||||
MarkdownBody(
|
||||
selectable: true,
|
||||
data: this.widget.recipeStep.description,
|
||||
onTapLink: (text, url, title) {
|
||||
launch(url!);
|
||||
},
|
||||
)
|
||||
],
|
||||
)
|
||||
]
|
||||
|
|
|
@ -44,6 +44,9 @@ dependencies:
|
|||
flutter_native_timezone: ^2.0.0
|
||||
flutter_local_notifications: ^8.0.0
|
||||
|
||||
flutter_markdown: ^0.6.4
|
||||
url_launcher: ^6.0.9
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
|
|
Loading…
Add table
Reference in a new issue