-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Labels
f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.12Found to occur in 3.12Found to occur in 3.12frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
- Use a
PopupMenuItemthat uses aListTile(Could be a custom one, orCheckedPopupMenuItem)
Expected results
For the item to follow 12dp horizontal padding as mentioned in the material spec without further configuration.
Actual results
The item is horizontally padded making the positioning out-of-spec. This could be resolved by removing the padding passed to the PopupMenuItem.
Code sample
Code sample
import 'package:flutter/material.dart';
void main() {
runApp(const App());
}
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(context) {
return MaterialApp(
theme: ThemeData.light(useMaterial3: true),
home: Scaffold(body: Center(child: PopupMenuButton(
offset: const Offset(0, 56),
itemBuilder: (context, ) => [
const CheckedPopupMenuItem(
checked: true,
child: Text("checked"),
),
const PopupMenuItem(
child: ListTile(
leading: Icon(Icons.check_rounded),
title: Text("checked"),
),
),
const PopupMenuItem(
padding: EdgeInsets.symmetric(horizontal: 0),
child: ListTile(
leading: Icon(Icons.logout),
title: Text("Logout"),
),
)
]
)))
);
}
}Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.10.2, on Arch Linux 6.3.5-arch1-1, locale en_US.UTF-8)
• Flutter version 3.10.2 on channel stable at /home/<REDACTED>/Sdks/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 9cd3d0d9ff (2 weeks ago), 2023-05-23 20:57:28 -0700
• Engine revision 90fa3ae28f
• Dart version 3.0.2
• DevTools version 2.23.1
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc2)
• Android SDK at /opt/android-sdk
• Platform android-33, build-tools 34.0.0-rc2
• Java binary at: /usr/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.7+7)
• All Android licenses accepted.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
• clang version 15.0.7
• cmake version 3.26.4
• ninja version 1.11.1
• pkg-config version 1.8.1
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
[✓] Connected device (2 available)
• <REDACTED> (mobile) • <REDACTED> • android-arm64 • Android 12 (API 31)
• Linux (desktop) • linux • linux-x64 • Arch Linux 6.3.5-arch1-1
[✓] Network resources
• All expected network resources are available.Metadata
Metadata
Assignees
Labels
f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.12Found to occur in 3.12Found to occur in 3.12frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Type
Projects
Status
Done (PR merged)

