@@ -15,7 +15,7 @@ class DocumentViewerScreen extends StatefulWidget {
1515class _DocumentViewerScreenState extends State <DocumentViewerScreen > {
1616 FleatherController ? _controller;
1717 late Box _box;
18- final String _defaultDocName = "novo_pisanje " ;
18+ final String _defaultDocName = "new_note " ;
1919 final FocusNode _focusNode = FocusNode ();
2020
2121 @override
@@ -63,14 +63,12 @@ class _DocumentViewerScreenState extends State<DocumentViewerScreen> {
6363 child: Padding (
6464 padding: const EdgeInsets .symmetric (horizontal: 16 ),
6565 child: GestureDetector (
66- // Rešava kursor: Ako klikneš van teksta, editor dobija fokus
6766 onTap: () => _focusNode.requestFocus (),
6867 child: FleatherEditor (
6968 controller: _controller! ,
7069 focusNode: _focusNode,
7170 readOnly: false ,
7271 autoFocus: false ,
73- // Omogućava normalno kretanje kursora bez prisilne selekcije
7472 enableInteractiveSelection: true ,
7573 padding: EdgeInsets .only (
7674 top: 16 ,
@@ -80,10 +78,6 @@ class _DocumentViewerScreenState extends State<DocumentViewerScreen> {
8078 ),
8179 ),
8280 ),
83-
84- // Pilula koja je UVEK tu
85- Positioned (
86- // Ako je tastatura tu, ide iznad nje. Ako nije, ide na dno (safe area)
8781 bottom: isKeyboardVisible
8882 ? bottomInset + 16
8983 : MediaQuery .of (context).padding.bottom + 16 ,
0 commit comments