feat: add quick edit panel (#4089)

* feat: add quick edit panel

* feat: improve datepicker color

* fix: quick edit field editor overflow

* chore: try to fix mobile ci

* Revert "chore: try to fix mobile ci"

This reverts commit 68f0ccecd6.
This commit is contained in:
Lucas.Xu
2023-12-05 17:34:42 +08:00
committed by GitHub
parent d25830aece
commit 7d55153475
24 changed files with 371 additions and 101 deletions

View File

@ -17,6 +17,7 @@ class FlowyOptionTile extends StatelessWidget {
this.showTopBorder = true,
this.showBottomBorder = true,
this.text,
this.textColor,
this.controller,
this.leading,
this.onTap,
@ -33,6 +34,7 @@ class FlowyOptionTile extends StatelessWidget {
factory FlowyOptionTile.text({
required String text,
Color? textColor,
bool showTopBorder = true,
bool showBottomBorder = true,
Widget? leftIcon,
@ -42,6 +44,7 @@ class FlowyOptionTile extends StatelessWidget {
return FlowyOptionTile._(
type: FlowyOptionTileType.text,
text: text,
textColor: textColor,
controller: null,
onTap: onTap,
showTopBorder: showTopBorder,
@ -128,6 +131,7 @@ class FlowyOptionTile extends StatelessWidget {
final bool showTopBorder;
final bool showBottomBorder;
final String? text;
final Color? textColor;
final TextEditingController? controller;
final EdgeInsets textFieldPadding;
final void Function()? onTap;
@ -156,7 +160,7 @@ class FlowyOptionTile extends StatelessWidget {
children: [
_buildText(),
..._buildTextField(),
const Spacer(),
if (controller == null) const Spacer(),
trailing ?? const SizedBox.shrink(),
const HSpace(12.0),
],
@ -188,6 +192,7 @@ class FlowyOptionTile extends StatelessWidget {
useIntrinsicWidth: true,
text: FlowyText(
text!,
color: textColor,
),
margin: const EdgeInsets.symmetric(
horizontal: 16.0,
@ -226,7 +231,6 @@ class FlowyOptionTile extends StatelessWidget {
child: Container(
constraints: const BoxConstraints.tightFor(
height: 54.0,
width: double.infinity,
),
alignment: Alignment.center,
child: TextField(