|
@@ -5,6 +5,8 @@ import 'package:flowy_infra_ui/style_widget/icon_button.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
|
|
|
|
|
|
+import 'define.dart';
|
|
|
|
+
|
|
class BoardCheckboxCell extends StatefulWidget {
|
|
class BoardCheckboxCell extends StatefulWidget {
|
|
final GridCellControllerBuilder cellControllerBuilder;
|
|
final GridCellControllerBuilder cellControllerBuilder;
|
|
|
|
|
|
@@ -38,12 +40,17 @@ class _BoardCheckboxCellState extends State<BoardCheckboxCell> {
|
|
final icon = state.isSelected
|
|
final icon = state.isSelected
|
|
? svgWidget('editor/editor_check')
|
|
? svgWidget('editor/editor_check')
|
|
: svgWidget('editor/editor_uncheck');
|
|
: svgWidget('editor/editor_uncheck');
|
|
- return Align(
|
|
|
|
- alignment: Alignment.centerLeft,
|
|
|
|
- child: FlowyIconButton(
|
|
|
|
- iconPadding: EdgeInsets.zero,
|
|
|
|
- icon: icon,
|
|
|
|
- width: 20,
|
|
|
|
|
|
+ return Padding(
|
|
|
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
+ vertical: BoardSizes.cardCellVPading,
|
|
|
|
+ ),
|
|
|
|
+ child: Align(
|
|
|
|
+ alignment: Alignment.centerLeft,
|
|
|
|
+ child: FlowyIconButton(
|
|
|
|
+ iconPadding: EdgeInsets.zero,
|
|
|
|
+ icon: icon,
|
|
|
|
+ width: 20,
|
|
|
|
+ ),
|
|
),
|
|
),
|
|
);
|
|
);
|
|
},
|
|
},
|