Remove request tab from my items and my packages

This commit is contained in:
fhkhd
2024-02-29 16:30:13 +03:30
parent 13d52b4094
commit 261926f678
2 changed files with 54 additions and 42 deletions
@@ -42,7 +42,12 @@ class _MyItemsResultScreenState extends State<MyItemsResultScreen>
child: Scaffold( child: Scaffold(
appBar: AppBar( appBar: AppBar(
titleSpacing: -10, titleSpacing: -10,
title: Text('Home', style: TextStyle(color: Colors.white,),), title: Text(
'Home',
style: TextStyle(
color: Colors.white,
),
),
backgroundColor: Colors.black, backgroundColor: Colors.black,
leading: IconButton( leading: IconButton(
icon: Icon( icon: Icon(
@@ -52,30 +57,31 @@ class _MyItemsResultScreenState extends State<MyItemsResultScreen>
), ),
onPressed: () => Navigator.of(context).pop(), onPressed: () => Navigator.of(context).pop(),
), ),
bottom: TabBar( // bottom: TabBar(
controller: _tabController, // controller: _tabController,
indicatorColor: kBlue, // indicatorColor: kBlue,
labelColor: Colors.white, // labelColor: Colors.white,
tabs: [ // tabs: [
Tab( // Tab(
text: 'Mine', // text: 'Mine',
), // ),
Tab( // Tab(
text: 'Requests', // text: 'Requests',
), // ),
], // ],
), // ),
), ),
floatingActionButton: MyItemResultFloatingButton( floatingActionButton: MyItemResultFloatingButton(
deviceBlockSize: _deviceBlockSize, deviceBlockSize: _deviceBlockSize,
), ),
body: TabBarView( body: MyItemsMineScreen(),
controller: _tabController, // TabBarView(
children: [ // controller: _tabController,
MyItemsMineScreen(), // children: [
MyItemsRequestsScreen(), // MyItemsMineScreen(),
], // MyItemsRequestsScreen(),
), // ],
// ),
), ),
), ),
), ),
@@ -42,7 +42,12 @@ class _MyPackagesResultScreenState extends State<MyPackagesResultScreen>
child: Scaffold( child: Scaffold(
appBar: AppBar( appBar: AppBar(
titleSpacing: -10, titleSpacing: -10,
title: Text('Home', style: TextStyle(color: Colors.white,),), title: Text(
'Home',
style: TextStyle(
color: Colors.white,
),
),
backgroundColor: Colors.black, backgroundColor: Colors.black,
leading: IconButton( leading: IconButton(
icon: Icon( icon: Icon(
@@ -52,30 +57,31 @@ class _MyPackagesResultScreenState extends State<MyPackagesResultScreen>
), ),
onPressed: () => Navigator.of(context).pop(), onPressed: () => Navigator.of(context).pop(),
), ),
bottom: TabBar( // bottom: TabBar(
controller: _tabController, // controller: _tabController,
indicatorColor: kPurple, // indicatorColor: kPurple,
labelColor: Colors.white, // labelColor: Colors.white,
tabs: [ // tabs: [
Tab( // Tab(
text: 'Mine', // text: 'Mine',
), // ),
Tab( // Tab(
text: 'Requests', // text: 'Requests',
), // ),
], // ],
), // ),
), ),
floatingActionButton: MyPackageResultFloatingButton( floatingActionButton: MyPackageResultFloatingButton(
deviceBlockSize: _deviceBlockSize, deviceBlockSize: _deviceBlockSize,
), ),
body: TabBarView( body: MyPackagesMineScreen(),
controller: _tabController, // TabBarView(
children: [ // controller: _tabController,
MyPackagesMineScreen(), // children: [
MyPackagesRequestsScreen(), // MyPackagesMineScreen(),
], // MyPackagesRequestsScreen(),
), // ],
// ),
), ),
), ),
), ),