android – How am i able to show & place textual content in my NavBar utilizing Inkwell in flutter


InkWell(
                        onTap: () {
                          onItemSelected(3);
                        },
                        little one: Stack(kids: [
                          if (notificationsController.showBadge.value == true)
                            Positioned(
                              right: 6,
                              top: 6,
                              child: Container(
                                width: 8,
                                height: 8,
                                decoration: BoxDecoration(
                                    color: homeController.currentTab.value == 3
                                        ? AppColors.secondary
                                        : const Color(0xff979797),
                                    borderRadius: BorderRadius.circular(4)),
                              ),
                            ),
                          Container(
                              padding: const EdgeInsets.symmetric(
                                  horizontal: 10, vertical: 10),
                              child: Icon(
                                CupertinoIcons.bell,
                                color: homeController.currentTab.value == 3
                                    ? AppColors.secondary
                                    : const Color(0xff979797),
                              )),
                           const Text(
                            'Notif',
                          ),
                        ])),

Leave a Reply