TF-1884 Support RTL mode for TextField

(cherry picked from commit 3f8445141bea9dbf276a6a336114e4e2b549936f)
This commit is contained in:
dab246
2023-06-14 11:47:13 +07:00
committed by Dat H. Pham
parent 0cc2a2f0cc
commit df19b979a2
28 changed files with 500 additions and 485 deletions
@@ -1,6 +1,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/views/button/icon_button_web.dart';
import 'package:core/presentation/views/text/text_field_builder.dart';
import 'package:core/utils/build_utils.dart';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart';
@@ -101,7 +102,7 @@ class InsertImageDialogBuilder {
color: Colors.black,
fontWeight: FontWeight.w500)),
const SizedBox(height: 10),
TextField(
TextFieldBuilder(
controller: _inputUrlController,
textInputAction: TextInputAction.done,
decoration: InputDecoration(
@@ -110,7 +111,7 @@ class InsertImageDialogBuilder {
errorText: validateFailed,
errorMaxLines: 2,
),
),
)
]),
),
actionsPadding: const EdgeInsets.symmetric(vertical: 8, horizontal: 8),