Skip to content

Commit

Permalink
fix scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
glennquah committed Aug 2, 2023
1 parent fcd0647 commit e0633e0
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions lib/screens/friendcards/friendscardpage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -229,24 +229,25 @@ class _FriendsCardsPageState extends State<FriendsCardsPage> {
Expanded(
child: TabBarView(
children: [
Column(
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: TextField(
onChanged: _filterUsers,
controller: _searchController,
decoration: InputDecoration(
labelText: 'Search for Friends',
prefixIcon: const Icon(Icons.search),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(20.0),
SingleChildScrollView(
// Wrap this in SingleChildScrollView
child: Column(
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: TextField(
onChanged: _filterUsers,
controller: _searchController,
decoration: InputDecoration(
labelText: 'Search for Friends',
prefixIcon: const Icon(Icons.search),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(20.0),
),
),
),
),
),
Expanded(
child: ListView.separated(
ListView.separated(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
itemCount: filteredFriends.isNotEmpty
Expand Down Expand Up @@ -319,8 +320,8 @@ class _FriendsCardsPageState extends State<FriendsCardsPage> {
);
},
),
),
],
],
),
),
ListView.builder(
physics: const NeverScrollableScrollPhysics(),
Expand Down

0 comments on commit e0633e0

Please sign in to comment.