소스 검색

removed divider that comes after text field in file info

ashilkn 2 년 전
부모
커밋
c6f68ad5cb
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      lib/ui/components/info_item_widget.dart
  2. 3 1
      lib/ui/viewer/file/file_info_widget.dart

+ 1 - 1
lib/ui/components/info_item_widget.dart

@@ -21,7 +21,7 @@ class _InfoItemWidgetState extends State<InfoItemWidget> {
         counterStyle: textTheme.mini.copyWith(color: colorScheme.textMuted),
         counterStyle: textTheme.mini.copyWith(color: colorScheme.textMuted),
         counterText: currentLength > 99
         counterText: currentLength > 99
             ? currentLength.toString() + " / " + maxLength.toString()
             ? currentLength.toString() + " / " + maxLength.toString()
-            : " ",
+            : "",
         contentPadding: const EdgeInsets.all(16),
         contentPadding: const EdgeInsets.all(16),
         border: InputBorder.none,
         border: InputBorder.none,
         focusedBorder: InputBorder.none,
         focusedBorder: InputBorder.none,

+ 3 - 1
lib/ui/viewer/file/file_info_widget.dart

@@ -276,7 +276,9 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
               delegate: SliverChildBuilderDelegate(
               delegate: SliverChildBuilderDelegate(
                 (context, index) {
                 (context, index) {
                   if (index.isOdd) {
                   if (index.isOdd) {
-                    return const DividerWidget(dividerType: DividerType.menu);
+                    return index == 1
+                        ? const SizedBox.shrink()
+                        : const DividerWidget(dividerType: DividerType.menu);
                   } else {
                   } else {
                     return listTiles[index ~/ 2];
                     return listTiles[index ~/ 2];
                   }
                   }