mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
优化使用体验
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -63,6 +63,16 @@ ThemeData darkTheme = ThemeData.dark().copyWith(
|
||||
color: _primaryColor,
|
||||
),
|
||||
),
|
||||
border: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xff999999),
|
||||
),
|
||||
),
|
||||
enabledBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xff999999),
|
||||
),
|
||||
),
|
||||
),
|
||||
tabBarTheme: const TabBarTheme(
|
||||
labelStyle: TextStyle(
|
||||
@@ -108,6 +118,16 @@ ThemeData lightTheme = ThemeData.light().copyWith(
|
||||
color: _primaryColor,
|
||||
),
|
||||
),
|
||||
border: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xff999999),
|
||||
),
|
||||
),
|
||||
enabledBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xff999999),
|
||||
),
|
||||
),
|
||||
),
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: _primaryColor,
|
||||
|
||||
Reference in New Issue
Block a user