containerAppBar method
Implementation
Widget containerAppBar() {
if (showAllForm == false && page != 0 && widget.backIcon == true) {
return Container(
color: Colors.transparent,
child: AppBar(
backgroundColor: Colors.transparent,
elevation: 0,
automaticallyImplyLeading: true,
actions: <Widget>[Container()],
leading: IconButton(
icon: const Icon(Icons.arrow_back_rounded, color: Colors.black),
onPressed: loading ? null : onBack,
),
),
);
} else {
return Container(
color: Colors.transparent,
child: widget.fields.length > 1
? AppBar(
//Para não sambar o appbar
backgroundColor: Colors.transparent,
elevation: 0,
automaticallyImplyLeading: true,
actions: <Widget>[Container()],
leading: const SizedBox(),
toolbarHeight: 0,
)
: null,
);
}
}