Skip to content

Commit

Permalink
Merge pull request #515 from MohamedRejeb/1.x
Browse files Browse the repository at this point in the history
Remove non-needed text style
  • Loading branch information
MohamedRejeb authored Feb 16, 2025
2 parents cfa36e6 + bd9ad6f commit cea2007
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.mohamedrejeb.richeditor.ui

import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.LayoutDirection
import com.mohamedrejeb.richeditor.model.RichTextState
Expand All @@ -11,7 +10,6 @@ import kotlinx.coroutines.CoroutineScope
internal actual fun Modifier.adjustTextIndicatorOffset(
state: RichTextState,
contentPadding: PaddingValues,
textStyle: TextStyle,
density: Density,
layoutDirection: LayoutDirection,
scope: CoroutineScope,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import androidx.compose.foundation.layout.calculateStartPadding
import androidx.compose.foundation.text.BasicTextField
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.LocalTextStyle
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.focusProperties
Expand Down Expand Up @@ -196,7 +195,6 @@ public fun BasicRichTextEditor(
contentPadding: PaddingValues
) {
val density = LocalDensity.current
val localTextStyle = LocalTextStyle.current
val layoutDirection = LocalLayoutDirection.current
val clipboardManager = LocalClipboardManager.current
val richClipboardManager = remember(state) {
Expand Down Expand Up @@ -268,7 +266,6 @@ public fun BasicRichTextEditor(
.adjustTextIndicatorOffset(
state = state,
contentPadding = contentPadding,
textStyle = localTextStyle,
density = density,
layoutDirection = layoutDirection,
scope = rememberCoroutineScope()
Expand Down Expand Up @@ -300,7 +297,6 @@ public fun BasicRichTextEditor(
internal expect fun Modifier.adjustTextIndicatorOffset(
state: RichTextState,
contentPadding: PaddingValues,
textStyle: TextStyle,
density: Density,
layoutDirection: LayoutDirection,
scope: CoroutineScope,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.pointer.PointerEventType
import androidx.compose.ui.input.pointer.onPointerEvent
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.LayoutDirection
import com.mohamedrejeb.richeditor.model.RichTextState
Expand All @@ -17,7 +16,6 @@ import kotlinx.coroutines.launch
internal actual fun Modifier.adjustTextIndicatorOffset(
state: RichTextState,
contentPadding: PaddingValues,
textStyle: TextStyle,
density: Density,
layoutDirection: LayoutDirection,
scope: CoroutineScope,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.mohamedrejeb.richeditor.ui

import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.LayoutDirection
import com.mohamedrejeb.richeditor.model.RichTextState
Expand All @@ -11,7 +10,6 @@ import kotlinx.coroutines.CoroutineScope
internal actual fun Modifier.adjustTextIndicatorOffset(
state: RichTextState,
contentPadding: PaddingValues,
textStyle: TextStyle,
density: Density,
layoutDirection: LayoutDirection,
scope: CoroutineScope,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.mohamedrejeb.richeditor.ui

import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.LayoutDirection
import com.mohamedrejeb.richeditor.model.RichTextState
Expand All @@ -11,7 +10,6 @@ import kotlinx.coroutines.CoroutineScope
internal actual fun Modifier.adjustTextIndicatorOffset(
state: RichTextState,
contentPadding: PaddingValues,
textStyle: TextStyle,
density: Density,
layoutDirection: LayoutDirection,
scope: CoroutineScope,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.mohamedrejeb.richeditor.ui

import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.LayoutDirection
import com.mohamedrejeb.richeditor.model.RichTextState
Expand All @@ -11,7 +10,6 @@ import kotlinx.coroutines.CoroutineScope
internal actual fun Modifier.adjustTextIndicatorOffset(
state: RichTextState,
contentPadding: PaddingValues,
textStyle: TextStyle,
density: Density,
layoutDirection: LayoutDirection,
scope: CoroutineScope
Expand Down

0 comments on commit cea2007

Please sign in to comment.