Parcourir la source

Caption: Add border radius and change fill color

Neeraj Gupta il y a 2 ans
Parent
commit
396bf731b4
1 fichiers modifiés avec 15 ajouts et 3 suppressions
  1. 15 3
      lib/ui/viewer/file/file_caption_widget.dart

+ 15 - 3
lib/ui/viewer/file/file_caption_widget.dart

@@ -67,10 +67,22 @@ class _FileCaptionWidgetState extends State<FileCaptionWidget> {
             ? currentLength.toString() + " / " + maxLength.toString()
             : "",
         contentPadding: const EdgeInsets.all(16),
-        border: InputBorder.none,
-        focusedBorder: InputBorder.none,
+        border: OutlineInputBorder(
+          borderRadius: BorderRadius.circular(2),
+          borderSide: const BorderSide(
+            width: 0,
+            style: BorderStyle.none,
+          ),
+        ),
+        focusedBorder: OutlineInputBorder(
+          borderRadius: BorderRadius.circular(2),
+          borderSide: const BorderSide(
+            width: 0,
+            style: BorderStyle.none,
+          ),
+        ),
         filled: true,
-        fillColor: colorScheme.fillFaint,
+        fillColor: colorScheme.fillMuted,
         hintText: hintText,
         hintStyle: getEnteTextTheme(context)
             .small