Skip to content

Commit

Permalink
Fix padding for empty pagination list on all sightings screen
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Jun 4, 2024
1 parent 6af48d6 commit 6df583d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/app/lib/ui/screens/all_sightings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ class ScrollView extends StatelessWidget {
MultiSliver(
children: [
const SliverToBoxAdapter(child: SizedBox(height: 40.0)),
SightingsList(paginator: paginator),
SliverCrossAxisPadded(
paddingStart: 20,
paddingEnd: 20,
child: SightingsList(paginator: paginator)),
const SliverToBoxAdapter(child: SizedBox(height: 40.0)),
],
),
Expand Down
2 changes: 1 addition & 1 deletion packages/app/lib/ui/screens/all_species.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class AllSpeciesScreen extends StatelessWidget {
child: CustomScrollView(
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
const SliverToBoxAdapter(child: SizedBox(height: 80.0)),
const SliverToBoxAdapter(child: SizedBox(height: 120.0)),
SpeciesList(paginator: paginator),
const SliverToBoxAdapter(child: SizedBox(height: 20.0)),
]),
Expand Down
3 changes: 1 addition & 2 deletions packages/app/lib/ui/widgets/sightings_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ class _SightingsListState extends State<SightingsList> {
itemCount: collection.length,
itemBuilder: (BuildContext context, int index) {
return Container(
padding: const EdgeInsets.only(
bottom: 20.0, left: 20.0, right: 20.0),
padding: const EdgeInsets.only(bottom: 20.0),
child: _item(collection[index]));
});
},
Expand Down

0 comments on commit 6df583d

Please sign in to comment.