mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-11-04 12:03:28 +00:00 
			
		
		
		
	fix(appflowy_flutter): fix double click title issue #1324
double click the title to select all the text on it
This commit is contained in:
		
							parent
							
								
									0dac41b114
								
							
						
					
					
						commit
						2368f5dc4a
					
				@ -55,6 +55,13 @@ class _ViewLeftBarItemState extends State<ViewLeftBarItem> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    return IntrinsicWidth(
 | 
					    return IntrinsicWidth(
 | 
				
			||||||
      key: ValueKey(_controller.text),
 | 
					      key: ValueKey(_controller.text),
 | 
				
			||||||
 | 
					      child: GestureDetector(
 | 
				
			||||||
 | 
					        onDoubleTap: () {
 | 
				
			||||||
 | 
					          _controller.selection = TextSelection(
 | 
				
			||||||
 | 
					            baseOffset: 0,
 | 
				
			||||||
 | 
					            extentOffset: _controller.text.length,
 | 
				
			||||||
 | 
					          );
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        child: TextField(
 | 
					        child: TextField(
 | 
				
			||||||
          controller: _controller,
 | 
					          controller: _controller,
 | 
				
			||||||
          focusNode: _focusNode,
 | 
					          focusNode: _focusNode,
 | 
				
			||||||
@ -68,6 +75,7 @@ class _ViewLeftBarItemState extends State<ViewLeftBarItem> {
 | 
				
			|||||||
          // cursorColor: widget.cursorColor,
 | 
					          // cursorColor: widget.cursorColor,
 | 
				
			||||||
          // obscureText: widget.enableObscure,
 | 
					          // obscureText: widget.enableObscure,
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
 | 
					      ),
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user