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(
appBar: AppBar(
titleSpacing: -10,
title: Text('Home', style: TextStyle(color: Colors.white,),),
title: Text(
'Home',
style: TextStyle(
color: Colors.white,
),
),
backgroundColor: Colors.black,
leading: IconButton(
icon: Icon(
@@ -52,30 +57,31 @@ class _MyItemsResultScreenState extends State<MyItemsResultScreen>
),
onPressed: () => Navigator.of(context).pop(),
),
bottom: TabBar(
controller: _tabController,
indicatorColor: kBlue,
labelColor: Colors.white,
tabs: [
Tab(
text: 'Mine',
),
Tab(
text: 'Requests',
),
],
),
// bottom: TabBar(
// controller: _tabController,
// indicatorColor: kBlue,
// labelColor: Colors.white,
// tabs: [
// Tab(
// text: 'Mine',
// ),
// Tab(
// text: 'Requests',
// ),
// ],
// ),
),
floatingActionButton: MyItemResultFloatingButton(
deviceBlockSize: _deviceBlockSize,
),
body: TabBarView(
controller: _tabController,
children: [
MyItemsMineScreen(),
MyItemsRequestsScreen(),
],
),
body: MyItemsMineScreen(),
// TabBarView(
// controller: _tabController,
// children: [
// MyItemsMineScreen(),
// MyItemsRequestsScreen(),
// ],
// ),
),
),
),
@@ -42,7 +42,12 @@ class _MyPackagesResultScreenState extends State<MyPackagesResultScreen>
child: Scaffold(
appBar: AppBar(
titleSpacing: -10,
title: Text('Home', style: TextStyle(color: Colors.white,),),
title: Text(
'Home',
style: TextStyle(
color: Colors.white,
),
),
backgroundColor: Colors.black,
leading: IconButton(
icon: Icon(
@@ -52,30 +57,31 @@ class _MyPackagesResultScreenState extends State<MyPackagesResultScreen>
),
onPressed: () => Navigator.of(context).pop(),
),
bottom: TabBar(
controller: _tabController,
indicatorColor: kPurple,
labelColor: Colors.white,
tabs: [
Tab(
text: 'Mine',
),
Tab(
text: 'Requests',
),
],
),
// bottom: TabBar(
// controller: _tabController,
// indicatorColor: kPurple,
// labelColor: Colors.white,
// tabs: [
// Tab(
// text: 'Mine',
// ),
// Tab(
// text: 'Requests',
// ),
// ],
// ),
),
floatingActionButton: MyPackageResultFloatingButton(
deviceBlockSize: _deviceBlockSize,
),
body: TabBarView(
controller: _tabController,
children: [
MyPackagesMineScreen(),
MyPackagesRequestsScreen(),
],
),
body: MyPackagesMineScreen(),
// TabBarView(
// controller: _tabController,
// children: [
// MyPackagesMineScreen(),
// MyPackagesRequestsScreen(),
// ],
// ),
),
),
),