format code

This commit is contained in:
jyuesong
2022-01-18 09:29:45 +08:00
parent 917425c5de
commit 074580952f
40 changed files with 414 additions and 568 deletions

View File

@@ -19,7 +19,7 @@ class QLCupertinoContextMenuAction extends StatefulWidget {
this.isDestructiveAction = false,
this.onPressed,
this.trailingIcon,
}) : assert(child != null),
}) : assert(child != null),
assert(isDefaultAction != null),
assert(isDestructiveAction != null),
super(key: key);
@@ -45,10 +45,12 @@ class QLCupertinoContextMenuAction extends StatefulWidget {
final IconData? trailingIcon;
@override
State<QLCupertinoContextMenuAction> createState() => _QLCupertinoContextMenuActionState();
State<QLCupertinoContextMenuAction> createState() =>
_QLCupertinoContextMenuActionState();
}
class _QLCupertinoContextMenuActionState extends State<QLCupertinoContextMenuAction> {
class _QLCupertinoContextMenuActionState
extends State<QLCupertinoContextMenuAction> {
static const Color _kBackgroundColor = Color(0xFFEEEEEE);
static const Color _kBackgroundColorPressed = Color(0xFFDDDDDD);
static const double _kButtonHeight = 30.0;
@@ -96,7 +98,6 @@ class _QLCupertinoContextMenuActionState extends State<QLCupertinoContextMenuAct
return _kActionSheetActionStyle;
}
@override
Widget build(BuildContext context) {
return GestureDetector(