Quellcode durchsuchen

chore: hide more button on card title

appflowy vor 2 Jahren
Ursprung
Commit
311c6ae94a

+ 8 - 9
frontend/app_flowy/lib/plugins/board/presentation/board_page.dart

@@ -84,7 +84,6 @@ class BoardContent extends StatelessWidget {
   Widget _buildHeader(
       BuildContext context, AFBoardColumnHeaderData headerData) {
     return AppFlowyColumnHeader(
-      // icon: const Icon(Icons.lightbulb_circle),
       title: Flexible(
         fit: FlexFit.tight,
         child: FlowyText.medium(
@@ -95,14 +94,14 @@ class BoardContent extends StatelessWidget {
         ),
       ),
       // addIcon: const Icon(Icons.add, size: 20),
-      moreIcon: SizedBox(
-        width: 20,
-        height: 20,
-        child: svgWidget(
-          'grid/details',
-          color: context.read<AppTheme>().iconColor,
-        ),
-      ),
+      // moreIcon: SizedBox(
+      //   width: 20,
+      //   height: 20,
+      //   child: svgWidget(
+      //     'grid/details',
+      //     color: context.read<AppTheme>().iconColor,
+      //   ),
+      // ),
       height: 50,
       margin: config.headerPadding,
     );

+ 1 - 3
frontend/app_flowy/lib/plugins/board/presentation/card/board_checkbox_cell.dart

@@ -41,9 +41,7 @@ class _BoardCheckboxCellState extends State<BoardCheckboxCell> {
               ? svgWidget('editor/editor_check')
               : svgWidget('editor/editor_uncheck');
           return Padding(
-            padding: EdgeInsets.symmetric(
-              vertical: BoardSizes.cardCellVPading,
-            ),
+            padding: EdgeInsets.zero,
             child: Align(
               alignment: Alignment.centerLeft,
               child: FlowyIconButton(

+ 1 - 1
frontend/app_flowy/lib/plugins/board/presentation/card/board_date_cell.dart

@@ -45,7 +45,7 @@ class _BoardDateCellState extends State<BoardDateCell> {
               alignment: Alignment.centerLeft,
               child: Padding(
                 padding: EdgeInsets.symmetric(
-                  vertical: BoardSizes.cardCellVPading,
+                  vertical: BoardSizes.cardCellVPadding,
                 ),
                 child: FlowyText.regular(
                   state.dateStr,

+ 1 - 1
frontend/app_flowy/lib/plugins/board/presentation/card/board_number_cell.dart

@@ -42,7 +42,7 @@ class _BoardNumberCellState extends State<BoardNumberCell> {
           } else {
             return Padding(
               padding:
-                  EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPading),
+                  EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPadding),
               child: Align(
                 alignment: Alignment.centerLeft,
                 child: FlowyText.medium(

+ 2 - 1
frontend/app_flowy/lib/plugins/board/presentation/card/board_select_option_cell.dart

@@ -45,7 +45,8 @@ class _BoardSelectOptionCellState extends State<BoardSelectOptionCell> {
               )
               .toList();
           return Padding(
-            padding: EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPading),
+            padding:
+                EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPadding),
             child: Align(
               alignment: Alignment.centerLeft,
               child: AbsorbPointer(

+ 1 - 1
frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart

@@ -41,7 +41,7 @@ class _BoardTextCellState extends State<BoardTextCell> {
               alignment: Alignment.centerLeft,
               child: Padding(
                 padding:
-                    EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPading),
+                    EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPadding),
                 child: FlowyText.medium(
                   state.content,
                   fontSize: 14,

+ 1 - 1
frontend/app_flowy/lib/plugins/board/presentation/card/board_url_cell.dart

@@ -42,7 +42,7 @@ class _BoardUrlCellState extends State<BoardUrlCell> {
           } else {
             return Padding(
               padding:
-                  EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPading),
+                  EdgeInsets.symmetric(vertical: BoardSizes.cardCellVPadding),
               child: Align(
                 alignment: Alignment.centerLeft,
                 child: RichText(

+ 18 - 0
frontend/app_flowy/lib/plugins/board/presentation/card/card_container.dart

@@ -74,6 +74,7 @@ class CardAccessoryContainer extends StatelessWidget {
           width: 26,
           height: 26,
           padding: const EdgeInsets.all(3),
+          decoration: _makeBoxDecoration(context),
           child: accessory,
         ),
       );
@@ -88,6 +89,23 @@ class CardAccessoryContainer extends StatelessWidget {
   }
 }
 
+BoxDecoration _makeBoxDecoration(BuildContext context) {
+  final theme = context.read<AppTheme>();
+  final borderSide = BorderSide(color: theme.shader6, width: 1.0);
+  return BoxDecoration(
+    color: theme.surface,
+    border: Border.fromBorderSide(borderSide),
+    boxShadow: [
+      BoxShadow(
+          color: theme.shader6,
+          spreadRadius: 0,
+          blurRadius: 2,
+          offset: Offset.zero)
+    ],
+    borderRadius: const BorderRadius.all(Radius.circular(6)),
+  );
+}
+
 class _CardEnterRegion extends StatelessWidget {
   final Widget child;
   final List<CardAccessory> accessories;

+ 1 - 1
frontend/app_flowy/lib/plugins/board/presentation/card/define.dart

@@ -1,3 +1,3 @@
 class BoardSizes {
-  static double get cardCellVPading => 4;
+  static double get cardCellVPadding => 4;
 }

+ 4 - 6
frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/extension.dart

@@ -91,12 +91,10 @@ class SelectOptionTag extends StatelessWidget {
   Widget build(BuildContext context) {
     return ChoiceChip(
       pressElevation: 1,
-      label: Flexible(
-        child: FlowyText.medium(
-          name,
-          fontSize: 12,
-          overflow: TextOverflow.clip,
-        ),
+      label: FlowyText.medium(
+        name,
+        fontSize: 12,
+        overflow: TextOverflow.clip,
       ),
       selectedColor: color,
       backgroundColor: color,