D1APP-24 gesture disabled for changing page

This commit is contained in:
MohammadTaha Basiri 2021-12-27 12:14:41 +03:30
parent c5799e915f
commit 33bcf52b08
1 changed files with 13 additions and 16 deletions

View File

@ -36,10 +36,8 @@ class _HomeState extends State<Home> with SingleTickerProviderStateMixin {
@override
Widget build(BuildContext context) {
return Scaffold(
body: DefaultTabController(
length: 5,
child: TabBarView(
physics: const BouncingScrollPhysics(),
body: TabBarView(
physics: const NeverScrollableScrollPhysics(),
controller: _tabController,
children: [
const News(),
@ -52,7 +50,6 @@ class _HomeState extends State<Home> with SingleTickerProviderStateMixin {
const Profile(),
],
),
),
bottomNavigationBar: Consumer<HomeState>(
builder: (context, state, child) => DidvanBNB(
currentTabIndex: state.currentPageIndex,