Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/uni_app/lib/view/profile/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ class ProfilePageView extends ConsumerStatefulWidget {
class ProfilePageViewState extends SecondaryPageViewState<ProfilePageView> {
@override
Widget getBody(BuildContext context) {
// The bottom padding is removed from the MediaQuery further up the tree,
// so read the system navigation bar height from the view itself.
final bottomPadding = MediaQueryData.fromView(
View.of(context),
).viewPadding.bottom;

return ListView(
padding: EdgeInsets.only(bottom: bottomPadding),
children: [
DefaultConsumer<Profile>(
provider: profileProvider,
Expand Down