mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-27 04:03:16 +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,18 +71,15 @@ class NavigationItem extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
} else {
|
||||
return Material(
|
||||
type: MaterialType.transparency,
|
||||
child: ListTile(
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(48)),
|
||||
leading: leading,
|
||||
title: Text(title),
|
||||
minVerticalPadding: 16,
|
||||
onTap: onTap,
|
||||
tileColor: selected ? colorScheme.secondaryContainer : null,
|
||||
textColor: selected ? colorScheme.onSecondaryContainer : null,
|
||||
iconColor: selected ? colorScheme.onSecondaryContainer : null,
|
||||
),
|
||||
return ListTile(
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(48)),
|
||||
leading: leading,
|
||||
title: Text(title),
|
||||
minVerticalPadding: 16,
|
||||
onTap: onTap,
|
||||
tileColor: selected ? colorScheme.secondaryContainer : null,
|
||||
textColor: selected ? colorScheme.onSecondaryContainer : null,
|
||||
iconColor: selected ? colorScheme.onSecondaryContainer : null,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user