Unverified Commit f7de5aa5 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

fix visual density prefer_const_constructors lint (#54471)

parent 756a1f03
...@@ -451,14 +451,14 @@ class _MyHomePageState extends State<MyHomePage> { ...@@ -451,14 +451,14 @@ class _MyHomePageState extends State<MyHomePage> {
title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'), title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'),
subtitle: subtitle:
Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'), Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'),
trailing: Icon(Icons.check_box), trailing: const Icon(Icons.check_box),
onTap: () {}, onTap: () {},
), ),
ListTile( ListTile(
title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'), title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'),
subtitle: subtitle:
Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'), Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'),
leading: Icon(Icons.check_box), leading: const Icon(Icons.check_box),
dense: true, dense: true,
onTap: () {}, onTap: () {},
), ),
...@@ -467,8 +467,8 @@ class _MyHomePageState extends State<MyHomePage> { ...@@ -467,8 +467,8 @@ class _MyHomePageState extends State<MyHomePage> {
subtitle: subtitle:
Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'), Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'),
dense: true, dense: true,
leading: Icon(Icons.add_box), leading: const Icon(Icons.add_box),
trailing: Icon(Icons.check_box), trailing: const Icon(Icons.check_box),
onTap: () {}, onTap: () {},
), ),
ListTile( ListTile(
...@@ -476,8 +476,8 @@ class _MyHomePageState extends State<MyHomePage> { ...@@ -476,8 +476,8 @@ class _MyHomePageState extends State<MyHomePage> {
subtitle: subtitle:
Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'), Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'),
isThreeLine: true, isThreeLine: true,
leading: Icon(Icons.add_box), leading: const Icon(Icons.add_box),
trailing: Icon(Icons.check_box), trailing: const Icon(Icons.check_box),
onTap: () {}, onTap: () {},
), ),
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment