Функции копирования/вставки работают не только на iOS в приложении Flutter.IOS

Программируем под IOS
Ответить
Anonymous
 Функции копирования/вставки работают не только на iOS в приложении Flutter.

Сообщение Anonymous »

Я использую reactive_forms для обработки пользовательского ввода в моем проекте Flutter. После двойного щелчка функции копирования/вставки ReactiveTextField не работают только на iOS (работают на Android). В чем проблема? Вот мой код:

Код: Выделить всё

Widget _buildTextField() {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 4.0),
child: ReactiveTextField(
formControl: formControl as FormControl?,
formControlName: name,
autofocus: autoFocus,
textAlign: TextAlign.start,
textAlignVertical: TextAlignVertical.top,
inputFormatters: [
LengthLimitingTextInputFormatter(maxLength),
...(formatters ?? []),
],
keyboardType: inputType,
obscureText: obscureText,
maxLines: maxLines,
style: size14weight400.copyWith(color: secondaryTextColor),
decoration: InputDecoration(
prefix: prefix,
suffixIcon: suffix,
labelText: style == CustomTextFieldStyle.withHint ? name.tr() : null,
labelStyle: size14weight400.copyWith(color: brandBlack60Color),
hintStyle: size14weight400.copyWith(color: secondaryTextColor),
floatingLabelBehavior: FloatingLabelBehavior.always,
fillColor: textFieldBackgroundColor,
filled: true,
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(4.0),
borderSide: BorderSide(color: primaryColor, width: 1.5),
),
errorBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(4.0),
borderSide: BorderSide(color: errorColor, width: 1.5),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(4.0),
borderSide: BorderSide(color: textFieldBorderColor, width: 1.5),
),
contentPadding:
EdgeInsets.symmetric(vertical: 15.5, horizontal: 16.0),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(4.0),
borderSide: BorderSide(color: textFieldBorderColor, width: 1.5),
),
),
),
);
}

Я планирую использовать функции копирования/вставки по умолчанию.

Подробнее здесь: https://stackoverflow.com/questions/782 ... lutter-app
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «IOS»