应用程序栏:应用程序栏( 前导:后退按钮( 按下时:() { Get.off(exercisePage()); }, ),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(30),
bottomRight: Radius.circular(30)),
),
automaticallyImplyLeading: false,
title: Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'Regular exercise',
style: TextStyle(
fontFamily: 'FontMain', fontSize: 22, color: Colors.indigo),
),
),
backgroundColor: Color.fromARGB(255, 231, 235, 237),
),
我的应用栏中有一个 BackButon() ,我想更改 FLUTTER 中 BackButton 的默认图标。
appBar: AppBar(
automaticallyImplyLeading: false,
leading: GestureDetector(
onTap: () {
Navigator.pop(context);
},
child: const Icon(
Icons.arrow_back, // This is icon for change for your side
color: Colors.black,
),
),
centerTitle: false,
backgroundColor: Colors.white,
elevation: 0,
title: const Text(
"Testing",
style: TextStyle(
color: Colors.black,
fontSize: 22,
fontWeight: FontWeight.w400),
),
),
appBar: AppBar(
leading: IconButton(
icon: Icon(Icons.arrow_back, color: Colors.black),
onPressed: () => Navigator.of(context).pop(),
),
title: Text("Sample"),
centerTitle: true,
),