fixed most reported bugs
This commit is contained in:
@@ -5,7 +5,8 @@ class NavItem {
|
||||
final Widget icon;
|
||||
final Widget activeIcon;
|
||||
|
||||
const NavItem({required this.title, required this.icon, required this.activeIcon});
|
||||
const NavItem(
|
||||
{required this.title, required this.icon, required this.activeIcon});
|
||||
}
|
||||
|
||||
class NavbarItem extends StatelessWidget {
|
||||
@@ -25,14 +26,16 @@ class NavbarItem extends StatelessWidget {
|
||||
final Widget icon = active ? item.activeIcon : item.icon;
|
||||
|
||||
return SafeArea(
|
||||
child: InkWell(
|
||||
child: GestureDetector(
|
||||
onTap: onTap,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 12.0, horizontal: 6.0),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
decoration: BoxDecoration(
|
||||
color: active ? Theme.of(context).colorScheme.secondary.withOpacity(.4) : null,
|
||||
color: active
|
||||
? Theme.of(context).colorScheme.secondary.withOpacity(.4)
|
||||
: null,
|
||||
borderRadius: BorderRadius.circular(14.0),
|
||||
),
|
||||
child: Stack(
|
||||
@@ -45,7 +48,9 @@ class NavbarItem extends StatelessWidget {
|
||||
),
|
||||
IconTheme(
|
||||
data: IconThemeData(
|
||||
color: Theme.of(context).brightness == Brightness.light ? Colors.black.withOpacity(.5) : Colors.white.withOpacity(.3),
|
||||
color: Theme.of(context).brightness == Brightness.light
|
||||
? Colors.black.withOpacity(.5)
|
||||
: Colors.white.withOpacity(.3),
|
||||
),
|
||||
child: icon,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user