feat: improve android selection gesture (#647)

* feat: improve android touch gesture

* feat: long press to select a word on Android
This commit is contained in:
Lucas.Xu 2024-01-05 13:23:18 +07:00 • committed by GitHub
commit 07afd7a839
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 756 additions and 402 deletions

View file

@ -156,6 +156,7 @@ class _CustomizeThemeForEditorState extends State<CustomizeThemeForEditor> {
? const EdgeInsets.only(left: 200, right: 200)
: const EdgeInsets.symmetric(horizontal: 20),
cursorColor: Colors.green,
dragHandleColor: Colors.green,
selectionColor: Colors.green.withOpacity(0.5),
textStyleConfiguration: TextStyleConfiguration(
text: GoogleFonts.poppins(

View file

@ -112,6 +112,7 @@ class _MobileEditorState extends State<MobileEditor> {
EditorStyle _buildMobileEditorStyle() {
return EditorStyle.mobile(
cursorColor: const Color.fromARGB(255, 134, 46, 247),
dragHandleColor: const Color.fromARGB(255, 134, 46, 247),
selectionColor: const Color.fromARGB(50, 134, 46, 247),
textStyleConfiguration: TextStyleConfiguration(
text: GoogleFonts.poppins(