Skip to content

Commit

Permalink
Fix refresh indicator position on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Feb 5, 2025
1 parent b8d717f commit 090cad5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/view/account/profile_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ class _ProfileScreenState extends ConsumerState<ProfileScreen> {
final recentGames = ref.watch(myRecentGamesProvider);
final nbOfGames = ref.watch(userNumberOfGamesProvider(null)).valueOrNull ?? 0;
return RefreshIndicator.adaptive(
edgeOffset:
Theme.of(context).platform == TargetPlatform.iOS
? MediaQuery.paddingOf(context).top + 16.0
: 0,
key: _refreshIndicatorKey,
onRefresh: () async => ref.refresh(accountProvider),
child: ListView(
Expand Down

0 comments on commit 090cad5

Please sign in to comment.