mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: hide more button on card title
This commit is contained in:
parent
3507bbc35c
commit
311c6ae94a
@ -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,
|
||||
);
|
||||
|
@ -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(
|
||||
|
@ -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,
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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,
|
||||
|
@ -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(
|
||||
|
@ -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,3 +1,3 @@
|
||||
class BoardSizes {
|
||||
static double get cardCellVPading => 4;
|
||||
static double get cardCellVPadding => 4;
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user