The UI I am trying to ImplementI want to add an image background. My app has bottomNavigatorBar property and the background doesn't go there. Just stuck at the body. I try to Stack two Scafflod but It doesn't work
Stack(children: <Widget>[
Scaffold(
body: Image.asset('images/Opacity 80%.png',
alignment: Alignment.bottomLeft,),
),Scaffold(
extendBodyBehindAppBar: true,
appBar: PreferredSize(
preferredSize: Size.fromHeight(70.0),
child: widget.pagenumber == 2
? InfoAppbar()
: MyAppBar(_appBarlist[widget.pagenumber], controller, controller2),
),
body: _children[widget.pagenumber],
bottomNavigationBar: FancyBottomNavigation(
initialSelection: widget.pagenumber,
onTabChangedListener: onTapped,
tabs: [
TabData(
iconData: Icons.gavel,
title: 'Law',
),
TabData(
iconData: Icons.library_books,
title: 'Handbook',
),
TabData(iconData: Icons.info, title: 'Info'),
],
),
),
],);
}
void onTapped(int index) {
setState(() {
widget.pagenumber = index;
});
}}