-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
When I use the showMenu method, I set the width of child to MediaQuery.of (context). size.width But it doesn't work. I see that it is implemented in the source code like this
const double _kMenuMaxWidth = 5.0 * _kMenuWidthStep ;
const double _kMenuMinWidth = 2.0 * _kMenuWidthStep ;
const double _kMenuVerticalPadding = 8.0 ;
const double _kMenuWidthStep = 56.0 ;
...
...
_PopupMenu < T > 类扩展StatelessWidget {
最终Widget 子= ConstrainedBox (
约束:const BoxConstraints (minWidth :_kMenuMinWidth ,maxWidth :_kMenuMaxWidth ,),... ...
},But I want it to be the maximum width of my screen
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Type
Projects
Status
Done (PR merged)