Skip to content

[Material] ListTileThemeData value isThreeLine does not work #165453

@dyno-nexsoft

Description

@dyno-nexsoft

Steps to reproduce

Run MaterialApp with ListTileThemeData config

Expected results

isThreeLine: true

Actual results

isThreeLine: false

Code sample

Code sample
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: ListTileTheme(
          data: ListTileTheme.of(context).copyWith(isThreeLine: true),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Card(
                child: ListTile(
                  leading: FlutterLogo(size: 72.0),
                  title: Text('Three-line ListTile Theme'),
                  subtitle: Text(
                    'A sufficiently long subtitle warrants three lines.',
                  ),
                  trailing: Icon(Icons.more_vert),
                ),
              ),
              Card(
                child: ListTile(
                  leading: FlutterLogo(size: 72.0),
                  title: Text('Three-line ListTile'),
                  subtitle: Text(
                    'A sufficiently long subtitle warrants three lines.',
                  ),
                  trailing: Icon(Icons.more_vert),
                  isThreeLine: true,
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration

Image

Logs

No response

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.29.2, on Ubuntu 20.04.6 LTS 6.8.0-1021-azure, locale C.UTF-8) [172ms]
    • Flutter version 3.29.2 on channel stable at /home/codespace/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c236373904 (3 days ago), 2025-03-13 16:17:06 -0400
    • Engine revision 18b71d647a
    • Dart version 3.7.2
    • DevTools version 2.42.3

[✓] Chrome - develop for the web [29ms]
    • CHROME_EXECUTABLE = /usr/bin/www-browser

[!] Flutter IDE Support (No supported IDEs installed) [17ms]
    • IntelliJ - https://www.jetbrains.com/idea/
    • Android Studio - https://developer.android.com/studio/
    • VS Code - https://code.visualstudio.com/

[✓] Connected device (1 available) [947ms]
    • Chrome (web) • chrome • web-javascript • Lynx Version 2.9.0dev.5 (27 Feb 2020)
      libwww-FM 2.14, SSL-MM 1.4.1, GNUTLS 3.6.13, ncurses 6.2.20200212(wide)
      Built on linux-gnu.

      Copyrights held by the Lynx Developers Group,
      the University of Kansas, CERN, and other contributors.
      Distributed under the GNU General Public License (Version 2).
      See https://lynx.invisible-island.net/ and the online help for more information.

[✓] Network resources [468ms]
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listf: material designflutter/packages/flutter/material repository.found in release: 3.29Found to occur in 3.29found in release: 3.31Found to occur in 3.31frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions