mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 10:33:15 +03:00
wrap only one widget into Material
This commit is contained in:
parent
6be42ba0b3
commit
3d01d7867e
@ -131,7 +131,9 @@ class AppPage extends StatelessWidget {
|
||||
const SizedBox(width: 48),
|
||||
],
|
||||
),
|
||||
NavigationContent(key: _navExpandedKey, extended: true),
|
||||
Material(
|
||||
type: MaterialType.transparency,
|
||||
child: NavigationContent(key: _navExpandedKey, extended: true)),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -71,9 +71,7 @@ class NavigationItem extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
} else {
|
||||
return Material(
|
||||
type: MaterialType.transparency,
|
||||
child: ListTile(
|
||||
return ListTile(
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(48)),
|
||||
leading: leading,
|
||||
title: Text(title),
|
||||
@ -82,7 +80,6 @@ class NavigationItem extends StatelessWidget {
|
||||
tileColor: selected ? colorScheme.secondaryContainer : null,
|
||||
textColor: selected ? colorScheme.onSecondaryContainer : null,
|
||||
iconColor: selected ? colorScheme.onSecondaryContainer : null,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user