Skip to content

Commit

Permalink
AppBar
Browse files Browse the repository at this point in the history
- Migliorata AppBar
- Inserito pulsante di logout
- Aggiustato indice della nav bar
  • Loading branch information
marisuz committed Jan 2, 2023
1 parent 95d101b commit 8143243
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class _SnakeNavigationBarExampleScreenState
SnakeBarBehaviour snakeBarStyle = SnakeBarBehaviour.floating;
EdgeInsets padding = const EdgeInsets.all(12);

int _selectedItemPosition = 0;
int _selectedItemPosition = 2;
SnakeShape snakeShape = SnakeShape.circle;

bool showSelectedLabels = false;
Expand Down Expand Up @@ -85,16 +85,23 @@ class _SnakeNavigationBarExampleScreenState
extendBodyBehindAppBar: true,
resizeToAvoidBottomInset: true,
extendBody: true,
// APPBAR FUNZIONANTE ma attualmente non in uso
appBar: AppBar(
centerTitle: false,
leading: IconButton(
icon: const Icon(Icons.arrow_back, color: Colors.black),
onPressed: () {}),
title: const Text('Go back', style: TextStyle(color: Colors.black)),
elevation: 0,
backgroundColor: Colors.transparent,
systemOverlayStyle: SystemUiOverlayStyle.dark,
),
centerTitle: true,
leading: Image.asset('images/C11_Logo-png.png', fit: BoxFit.cover),
title: Text('Report.it', style: TextStyle(color: Colors.black)),
// IconButton(
// icon: const Icon(Icons.arrow_back, color: Colors.black),
// onPressed: () {}),
//title: const Text('Go back', style: TextStyle(color: Colors.black)),
elevation: 0,
backgroundColor: Colors.transparent,
systemOverlayStyle: SystemUiOverlayStyle.dark,
actions: [
IconButton(
onPressed: () {},
icon: Icon(Iconsax.logout, color: Colors.black))
]),
body: Pagine[_selectedItemPosition],
bottomNavigationBar: SnakeNavigationBar.color(
// height: 80,
Expand Down

0 comments on commit 8143243

Please sign in to comment.