-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: solvedIssue is closed as solvedIssue is closed as solvedteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Use case
The AlignmentGeometry class now contains redirecting constants like center or topLeft to allow the usage of dot shorthands:
Align(
alignment: .topLeft,
child: Foo(),
),However, the predefined values for directional alignment (like topStart) are missing from the AlignmentGeometry class:
Align(
// cannot use a dot shorthand
alignment: AlignmentDirectional.topStart,
child: Foo(),
),Proposal
Add the corresponding constants into AlignmentDirectional to enable dot shorthands for them as well:
Align(
alignment: .topStart,
child: Foo(),
),AbdeMohlbi and loic-sharma
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: solvedIssue is closed as solvedIssue is closed as solvedteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Type
Projects
Status
Done (PR merged)