I want my app to have 2 appBars but i don't know how i can add the second one , The first one have this code : appBar:
AppBar( title: Text('Tariffo', style: TextStyle( color: Colors.white, fontFamily: 'SignPainter', fontSize: 45)), shape: RoundedRectangleBorder( borderRadius: BorderRadius.vertical( bottom: Radius.circular(30), ), ), actions: <Widget>[ Padding( padding: EdgeInsets.only(right: 10), ), IconButton( icon: Icon(Icons.center_focus_weak), onPressed: () async { String scaning = await BarcodeScanner.scan(); setState(() { qrResult = scaning; }); }, ), IconButton( icon: Icon( Icons.perm_identity, color: Colors.white, ), onPressed: () { Navigator.push( context, MaterialPageRoute(builder: (context) => UserPage()), ); }), And the second one have this code:
appBar: AppBar(title: const Text('Bottom App Bar')), floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, floatingActionButton: FloatingActionButton( child: const Icon(Icons.add), onPressed: () {},), bottomNavigationBar: BottomAppBar( shape: CircularNotchedRectangle(), notchMargin: 4.0, child: new Row( mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: <Widget>[ IconButton(icon: Icon(Icons.menu), onPressed: () {},), IconButton(icon: Icon(Icons.search), onPressed: () {},), ], ), ), ); } So how can i add the second one to not get an error? Beacuse i tried to erase the first part with appbar: Appbar and i get a lot o errors
AppBars? What are you trying to achieve ?