Skip to content

Commit

Permalink
[SuperEditor][SuperReader][iOS][Android] - Long-press content selecti…
Browse files Browse the repository at this point in the history
…on (Resolves #1203) (#1489)
  • Loading branch information
matthew-carroll authored Oct 8, 2023
1 parent 24aef3e commit c54bbb2
Show file tree
Hide file tree
Showing 25 changed files with 3,196 additions and 83 deletions.
6 changes: 6 additions & 0 deletions super_editor/.run/Super Editor Demo (debug).run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Super Editor Demo (debug)" type="FlutterRunConfigurationType" factoryName="Flutter">
<option name="filePath" value="$PROJECT_DIR$/example/lib/main_super_editor.dart" />
<method v="2" />
</configuration>
</component>
6 changes: 6 additions & 0 deletions super_editor/.run/Super Reader Demo (debug).run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Super Reader Demo (debug)" type="FlutterRunConfigurationType" factoryName="Flutter">
<option name="filePath" value="$PROJECT_DIR$/example/lib/main_super_reader.dart" />
<method v="2" />
</configuration>
</component>
4 changes: 2 additions & 2 deletions super_editor/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import 'package:example/demos/in_the_lab/selected_text_colors_demo.dart';
import 'package:example/demos/scrolling/demo_task_and_chat_with_customscrollview.dart';
import 'package:example/demos/sliver_example_editor.dart';
import 'package:example/demos/styles/demo_doc_styles.dart';
import 'package:example/demos/super_document/demo_super_reader.dart';
import 'package:example/demos/super_reader/demo_super_reader.dart';
import 'package:example/demos/supertextfield/demo_textfield.dart';
import 'package:example/demos/supertextfield/ios/demo_superiostextfield.dart';
import 'package:example/logging.dart';
Expand All @@ -34,7 +34,7 @@ import 'package:super_editor/super_editor.dart';
import 'demos/demo_attributed_text.dart';
import 'demos/demo_document_loses_focus.dart';
import 'demos/demo_switch_document_content.dart';
import 'demos/super_document/demo_read_only_scrolling_document.dart';
import 'demos/super_reader/demo_read_only_scrolling_document.dart';
import 'demos/supertextfield/android/demo_superandroidtextfield.dart';

/// Demo of a basic text editor, as well as various widgets that
Expand Down
34 changes: 34 additions & 0 deletions super_editor/example/lib/main_super_editor.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import 'package:example/demos/example_editor/example_editor.dart';
import 'package:flutter/material.dart';
import 'package:logging/logging.dart';
import 'package:super_editor/super_editor.dart';

/// A demo of a [SuperEditor] experience.
///
/// This demo only shows a single, typical [SuperEditor]. To see a variety of
/// demos, see the main demo experience in this project.
void main() {
initLoggers(Level.FINEST, {
// editorScrollingLog,
// editorGesturesLog,
// longPressSelectionLog,
// editorImeLog,
// editorImeDeltasLog,
// editorKeyLog,
// editorOpsLog,
// editorLayoutLog,
// editorDocLog,
// editorStyleLog,
// textFieldLog,
// editorUserTagsLog,
// contentLayersLog,
});

runApp(
MaterialApp(
home: Scaffold(
body: ExampleEditor(),
),
),
);
}
16 changes: 16 additions & 0 deletions super_editor/example/lib/main_super_reader.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import 'package:example/demos/super_reader/demo_super_reader.dart';
import 'package:flutter/material.dart';

/// A demo of a [SuperReader] experience.
///
/// This demo only shows a single, typical [SuperReader]. To see a variety of
/// demos, see the main demo experience in this project.
void main() {
runApp(
MaterialApp(
home: Scaffold(
body: SuperReaderDemo(),
),
),
);
}
Loading

0 comments on commit c54bbb2

Please sign in to comment.