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:
parent
7ec43c9eee
commit
07afd7a839
2 changed files with 756 additions and 402 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue