[Simplistic_Editor] Fix delta history color switch on web release build (#1264)

pull/1266/head
Renzo Olivares 3 years ago committed by GitHub
parent 4e19545963
commit 7397bfdaaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,8 +63,7 @@ class _MyHomePageState extends State<MyHomePage> {
if (delta is TextEditingDeltaInsertion) {
deltaView = TextEditingDeltaView(
deltaType:
delta.runtimeType.toString().replaceAll('TextEditingDelta', ''),
deltaType: 'Insertion',
deltaText: delta.textInserted,
deltaRange: TextRange.collapsed(delta.insertionOffset),
newSelection: delta.selection,
@ -72,8 +71,7 @@ class _MyHomePageState extends State<MyHomePage> {
);
} else if (delta is TextEditingDeltaDeletion) {
deltaView = TextEditingDeltaView(
deltaType:
delta.runtimeType.toString().replaceAll('TextEditingDelta', ''),
deltaType: 'Deletion',
deltaText: delta.textDeleted,
deltaRange: delta.deletedRange,
newSelection: delta.selection,
@ -81,8 +79,7 @@ class _MyHomePageState extends State<MyHomePage> {
);
} else if (delta is TextEditingDeltaReplacement) {
deltaView = TextEditingDeltaView(
deltaType:
delta.runtimeType.toString().replaceAll('TextEditingDelta', ''),
deltaType: 'Replacement',
deltaText: delta.replacementText,
deltaRange: delta.replacedRange,
newSelection: delta.selection,
@ -90,8 +87,7 @@ class _MyHomePageState extends State<MyHomePage> {
);
} else if (delta is TextEditingDeltaNonTextUpdate) {
deltaView = TextEditingDeltaView(
deltaType:
delta.runtimeType.toString().replaceAll('TextEditingDelta', ''),
deltaType: 'NonTextUpdate',
deltaText: '',
deltaRange: TextRange.empty,
newSelection: delta.selection,

@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.2"
version: "2.9.0"
boolean_selector:
dependency: transitive
description:
@ -21,7 +21,7 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.2.1"
charcode:
dependency: transitive
description:
@ -120,7 +120,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.2"
version: "1.9.0"
stack_trace:
dependency: transitive
description:

Loading…
Cancel
Save