Skip to content

Commit

Permalink
feat: selectable code
Browse files Browse the repository at this point in the history
  • Loading branch information
PeronGH committed Jan 23, 2024
1 parent 827158c commit b41d0fb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/widgets/code_element.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_highlight/flutter_highlight.dart';
import 'package:flutter_highlight/themes/atom-one-dark.dart';
import 'package:flutter_highlighter/flutter_highlighter.dart';
import 'package:flutter_highlighter/themes/atom-one-dark.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:sydney_webui/utils/copy.dart';
import 'package:sydney_webui/utils/string.dart';
Expand Down
19 changes: 18 additions & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,22 @@ packages:
source: sdk
version: "0.0.0"
flutter_highlight:
dependency: "direct main"
dependency: transitive
description:
name: flutter_highlight
sha256: "7b96333867aa07e122e245c033b8ad622e4e3a42a1a2372cbb098a2541d8782c"
url: "https://pub.dev"
source: hosted
version: "0.7.0"
flutter_highlighter:
dependency: "direct main"
description:
path: flutter_highlighter
ref: master
resolved-ref: "9a2b566f0a59fcd414ff5031ccbf0ff1d101f962"
url: "https://github.com/predatorx7/highlight.git"
source: git
version: "0.1.1"
flutter_lints:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -200,6 +209,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.7.0"
highlighter:
dependency: transitive
description:
name: highlighter
sha256: "92180c72b9da8758e1acf39a45aa305a97dcfe2fdc8f3d1d2947c23f2772bfbc"
url: "https://pub.dev"
source: hosted
version: "0.1.1"
http:
dependency: transitive
description:
Expand Down
6 changes: 5 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ dependencies:
share_plus:
markdown:
markdown_widget:
flutter_highlight:
flutter_highlighter:
git:
url: https://github.com/predatorx7/highlight.git
path: flutter_highlighter
ref: master
flutter_math_fork:

dev_dependencies:
Expand Down

0 comments on commit b41d0fb

Please sign in to comment.