Sfoglia il codice sorgente

Caption: Add border radius and change fill color

Neeraj Gupta 2 anni fa
parent
commit
396bf731b4
1 ha cambiato i file con 15 aggiunte e 3 eliminazioni
  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