优化使用体验

This commit is contained in:
jyuesong
2022-01-19 15:14:29 +08:00
parent 16f4f27f17
commit 3959155c1b
8 changed files with 190 additions and 133 deletions

View File

@@ -20,16 +20,23 @@ class QlAppBar extends StatelessWidget with PreferredSizeWidget {
@override
Widget build(BuildContext context) {
Widget back = backWidget ??
GestureDetector(
InkWell(
onTap: () {
if (backCall != null) {
backCall!();
} else {
Navigator.of(context).pop();
}
},
child: const Center(
child: Icon(
CupertinoIcons.left_chevron,
color: Colors.white,
child: const Padding(
padding: EdgeInsets.symmetric(
horizontal: 15,
),
child: Center(
child: Icon(
CupertinoIcons.left_chevron,
color: Colors.white,
),
),
),
);