leadingWidget method
Implementation
Widget leadingWidget(BuildContext context, {bool isDark = false}) {
return this.noLeadingBack || !this.hasLeading
? SizedBox()
: InkWell(
splashColor: Colors.transparent,
onTap: this.onBack != null
? this.onBack as void Function()?
: () {
GoRouter.of(context).pop();
},
child: SizedBox(
height: MxBaseUserInfo.instance.appBarHeight,
child: MyAssetImageView(
UIData.icLeading(false),
width: 22.hsp,
height: 22.hsp,
fit: BoxFit.fitHeight,
).centered(),
).box.padding(UIData.fromLTRB(20, 0, 20, 0)).make(),
);
}