My Backside navBar is working high quality in android however in IOS i’ve to press on the fringe of the underside for altering the display.enter picture description right here
That is my code
PersistentTabController? _controller;
// int? userId = Get.discover<GeneralController>().userData!.id;
// Listing<Information>? branchList = Get.discover<BranchController>().allbranch;
closing generelController = Get.discover<GeneralController>();
int selectedIndex = 0;
NotificationService notificationService = NotificationService();
String? function;
closing home_Ar = "الرئيسية";
closing my_branch_Ar = "الفروع";
closing add_offer_Ar = "اضف اعلان";
closing pofile_Ar = "الملف الشخصي";
closing about_us_Ar = "من نحن";
get menuScreenContext => menuScreenContext;
@override
void initState() {
// TODO: implement initState
function = generelController.userData!.function;
tremendous.initState();
_controller = PersistentTabController(initialIndex: 0);
// notificationService.requestNotificationPermission();
}
@override
Widget construct(BuildContext context) {
return Padding(
padding: const EdgeInsets.solely(backside: 40.0),
little one: Scaffold(
resizeToAvoidBottomInset: false,
physique: PersistentTabView.customized(context,
controller: _controller,
screens: _buildScreens(),
confineInSafeArea: false,
itemCount: 4,
hideNavigationBar: false,
onWillPop: (closing context) async {
await showDialog(
context: menuScreenContext,
useSafeArea: true,
builder: (closing context) => Container(
peak: 50,
width: 50,
colour: Colours.white,
little one: ElevatedButton(
little one: const Textual content("Shut"),
onPressed: () {
Navigator.pop(context);
},
),
),
);
return false;
},
handleAndroidBackButtonPress: true,
resizeToAvoidBottomInset: true,
hideNavigationBarWhenKeyboardShows: true,
stateManagement: true,
customWidget: Scaffold(
bottomNavigationBar: CurvedNavigationBar(
animationCurve: Curves.linear,
buttonBackgroundColor: AppColor.secondryColor,
colour: AppColor.secondryColor,
backgroundColor: AppColor.primaryColor,
objects: [
CurvedNavigationBarItem(child: ImageIcon(AssetImage("assets/images/booking.png"), color: AppColor.iconColor, size: 30,),),
CurvedNavigationBarItem(child:ImageIcon(AssetImage("assets/images/wallet.png"), color: AppColor.iconColor, size: 30,),),
CurvedNavigationBarItem(child:Icon(Icons.chat, size: 30, color: AppColor.iconColor)),
CurvedNavigationBarItem(child:Icon(Icons.settings, size: 30, color: AppColor.iconColor)),
],
onTap: (index) {
setState(() {
selectedIndex = index;
if (index == 0) {
print("House Screens");
} else if (index == 1) {
print("Department Screens");
} else if (index == 2) {
print("Reserving Slots");
}
});
_controller!.index = index;
}))),
),
);
}
Listing<Widget> _buildScreens() {
return [BookingTabBar(), Wallet(), HomePage(), ProfileView()];
}
I attempted to implement completely different navbar these work high quality in android however in IOS these weren’t working whereas taping on backside navbar icons even not working whereas taping on the sting of navbar.
However curved navigation is working within the IOS however i’ve to faucet on the finish of the underside.