File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ mod templates;
44use askama:: Template ;
55use axum:: {
66 extract:: { Path , State } ,
7- http:: { HeaderValue , StatusCode } ,
7+ http:: StatusCode ,
88 response:: { Html , IntoResponse } ,
99 routing:: get,
1010 Json , Router ,
Original file line number Diff line number Diff line change @@ -185,7 +185,6 @@ class _BottomBarDialogWidgetState
185185 )
186186 .toList (),
187187 onReorder: (oldIndex, newIndex) async {
188- // ! Removed setState
189188 await ref
190189 .watch (snippetBarStateProvider.notifier)
191190 .reorder (oldIndex, newIndex);
@@ -333,7 +332,6 @@ class _AddSnippetDialogWidgetState
333332 ),
334333 ));
335334 } else {
336- // setState(() {
337335 await ref
338336 .watch (snippetBarStateProvider.notifier)
339337 .edit (
@@ -346,7 +344,6 @@ class _AddSnippetDialogWidgetState
346344 ),
347345 ),
348346 );
349- // });
350347 }
351348 Navigator .of (context).pop ();
352349 }
Original file line number Diff line number Diff line change @@ -34,23 +34,6 @@ class CustomTextSelectionControls extends TextSelectionControls {
3434 ClipboardStatusNotifier ? clipboardStatus,
3535 Offset ? lastSecondaryTapDownPosition,
3636 ) {
37- // ! Deprecate later
38- // final TextSelectionPoint startTextSelectionPoint = endpoints[0];
39- // final TextSelectionPoint endTextSelectionPoint =
40- // endpoints.length > 1 ? endpoints[1] : endpoints[0];
41- // final Offset anchorAbove = Offset(
42- // globalEditableRegion.left + selectionMidpoint.dx,
43- // globalEditableRegion.top +
44- // startTextSelectionPoint.point.dy -
45- // textLineHeight -
46- // _kToolbarContentDistance,
47- // );
48- // final Offset anchorBelow = Offset(
49- // globalEditableRegion.left + selectionMidpoint.dx,
50- // globalEditableRegion.top +
51- // endTextSelectionPoint.point.dy +
52- // _kToolbarContentDistanceBelow,
53- // );
5437 return _TextSelectionControlsToolbar (
5538 globalEditableRegion: globalEditableRegion,
5639 textLineHeight: textLineHeight,
You can’t perform that action at this time.
0 commit comments