mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
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:
@ -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(
|
||||
|
Reference in New Issue
Block a user