Skip to content

Allow to change the alignment in RadioListTile and CheckboxListTile #168596

Closed

Description

@ValentinVignal

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:

Image

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

Activity

  1. darshankawar commented on May 12, 2025

    @darshankawar
    Member

    @ValentinVignal
    Can you check if this helps in achieving your use case already ?

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 12, 2025
  3. ValentinVignal commented on May 12, 2025

    @ValentinVignal
    ContributorAuthor

    Thank you that helped for ListTile, however, it looks like the parameter is not there for the RadioListTile and CheckboxListTile

  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 12, 2025
  5. changed the title [-]Allow to change the alignment in ListTile[/-] [+]Allow to change the alignment in `RadioListTile` and `CheckboxListTile`[/+] on May 13, 2025
  6. added
    c: new featureNothing broken; request for a new capability
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    c: proposalA detailed proposal for a change to Flutter
    team-designOwned by Design Languages team
    and removed
    in triagePresently being triaged by the triage team
    on May 13, 2025
  7. added
    r: fixedIssue is closed as already fixed in a newer version
    on May 14, 2025
  8. github-actions commented on May 28, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  9. locked as resolved and limited conversation to collaborators on May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions