Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/src/code_editor.dart → example/lib/code_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
/// 2. The main text editing area with syntax highlighting.
import 'dart:convert';
import 'dart:math' as math;
import 'package:super_clipboard/super_clipboard.dart';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:super_clipboard/super_clipboard.dart';
import 'package:syntax_highlight/syntax_highlight.dart';

/// Width of the line number gutter in logical pixels
Expand Down
2 changes: 2 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:syntax_highlight/syntax_highlight.dart';

import 'code_editor.dart';

late final Highlighter _dartLightHighlighter;
late final Highlighter _dartDarkHighlighter;

Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ packages:
source: hosted
version: "1.4.1"
super_clipboard:
dependency: transitive
dependency: "direct main"
description:
name: super_clipboard
sha256: e73f3bb7e66cc9260efa1dc507f979138e7e106c3521e2dda2d0311f6d728a16
Expand Down
1 change: 1 addition & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
flutter:
sdk: flutter
google_fonts: ^5.1.0
super_clipboard: ^0.9.1
syntax_highlight:
path: ../

Expand Down
1 change: 0 additions & 1 deletion lib/syntax_highlight.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
library syntax_highlight;

export 'src/highlighter.dart';
export 'src/code_editor.dart';
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies:
sdk: flutter
collection: ^1.17.1
string_scanner: ^1.2.0
super_clipboard: ^0.9.1

dev_dependencies:
flutter_test:
Expand Down