Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #40 from phantomate/revert-39-markdown
Browse files Browse the repository at this point in the history
Revert "add markdown support"
  • Loading branch information
phantomate authored Jul 30, 2023
2 parents 04d06d3 + 1ec8f82 commit b08db83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
15 changes: 2 additions & 13 deletions lib/components/widgets/recipe_detail_tabbar_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'package:untare/extensions/double_extension.dart';
import 'package:flutter_gen/gen_l10n/app_locales.dart';
import 'package:collapsible/collapsible.dart';
import 'package:fraction/fraction.dart';
import 'package:flutter_markdown/flutter_markdown.dart';

class RecipeDetailTabBarWidget extends StatefulWidget {
final Recipe recipe;
Expand Down Expand Up @@ -125,12 +124,7 @@ class RecipeDetailTabBarWidgetState extends State<RecipeDetailTabBarWidget> {

stepList.addAll(widget.recipe.steps[i].ingredients.map((item) => ingredientComponent(item, servings, newServings, true, context)).toList());

stepList.add(Padding(
padding: const EdgeInsets.fromLTRB(20, 12, 15, 10),
child: MarkdownBody(
data: widget.recipe.steps[i].instruction ?? '',
styleSheet:
MarkdownStyleSheet(p: const TextStyle(fontSize: 15)))));
stepList.add(Padding(padding: const EdgeInsets.fromLTRB(20, 12, 15, 10), child: Text(widget.recipe.steps[i].instruction ?? '', style: const TextStyle(fontSize: 15))));

directionsSteps.add(directionStepLayout(context, Column(crossAxisAlignment: CrossAxisAlignment.start, children: stepList), i+1, widget.recipe.steps[i].time, widget.recipe.steps[i].name));
}
Expand All @@ -155,12 +149,7 @@ class RecipeDetailTabBarWidgetState extends State<RecipeDetailTabBarWidget> {
directionsSteps.add(
directionStepLayout(
context,
Padding(
padding: const EdgeInsets.fromLTRB(20, 12, 15, 10),
child: MarkdownBody(
data: splitInstruction,
styleSheet: MarkdownStyleSheet(
p: const TextStyle(fontSize: 15)))),
Padding(padding: const EdgeInsets.fromLTRB(20, 12, 15, 10), child: Text(splitInstruction, style: const TextStyle(fontSize: 15))),
i+1,
widget.recipe.steps.first.time,
widget.recipe.steps.first.name
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ dependencies:
collapsible: ^1.0.0
share_plus: ^6.3.1
fraction: ^4.1.4
flutter_markdown: ^0.6.15

dependency_overrides:
flutter_chips_input:
Expand Down

0 comments on commit b08db83

Please sign in to comment.