Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blank screen when the home contains DefaultTabController with nested Scaffold #22

Open
Mohamed-Reda1010 opened this issue Jul 20, 2023 · 0 comments

Comments

@Mohamed-Reda1010
Copy link

Mohamed-Reda1010 commented Jul 20, 2023

// Splach screen code

@OverRide
Widget build(BuildContext context) {
SizeConfig().init(context);
return Scaffold(
body: DoubleBackToCloseApp(
snackBar: MySnackBar.exitSnackbar(),
child: const Body(),
));
}

Home Screen Code

@OverRide
Widget build(BuildContext context) {
return Scaffold(
body: const Body(),
bottomNavigationBar:
const CustomBottomNavBar(selectedMenu: MenuState.home),
);
}

// Body() class
@OverRide
Widget build(BuildContext context) {
loadPicFaster(context);
return DefaultTabController(
initialIndex: 1,
length: 2,
child: Scaffold(
appBar: AppBar(
title: myTabBar(),
toolbarHeight: getProportionateScreenHeight(80),
backgroundColor: appBarBgColor,
automaticallyImplyLeading: false,
// title: const Text('title'),
//bottom: myTabBar(),
),
body: const TabBarView(
children: [
CarsSearch(
bottomNavBarShow: false,
appbarShow: false,
adminPanel: false,
showSpecialAqarsOnly: true,
),
CarsSearch(
bottomNavBarShow: false,
appbarShow: false,
adminPanel: false,
),
],
),
),
);

}

the plugin working well when i remove the DefaultTabController , but keeping it the app not closing just showing blank white screen !!
any ideas ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant