-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: 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 versionteam-designOwned by Design Languages teamOwned by Design Languages team
Description
Use case
Consider the code
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
const longTitle =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. '
'Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
const longSubtitle =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. '
'Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: ListView(
children: <Widget>[
ListTile(
title: const Text(longTitle),
subtitle: const Text(longSubtitle),
leading: const Icon(Icons.access_alarm),
trailing: const Icon(Icons.arrow_forward),
),
CheckboxListTile(
value: true,
onChanged: (value) {},
title: const Text(longTitle),
subtitle: const Text(longSubtitle),
secondary: const Icon(Icons.arrow_forward),
),
RadioListTile(
title: const Text(longTitle),
subtitle: const Text(longSubtitle),
secondary: const Icon(Icons.arrow_forward),
value: true,
groupValue: true,
onChanged: (value) {},
),
],
),
),
);
}
}
On macos, it renders into:
I'd like to be able to align the leading/trailing to the top of the ListTile instead of the middle of it
Proposal
Add a parameter to the ListTile, CheckboxListTile and RadioListTile to align the leading/trailing differently
Metadata
Metadata
Assignees
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: 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 versionteam-designOwned by Design Languages teamOwned by Design Languages team