Material 3 causes progressing misalignment in code and line numbers
alexeyinkin opened this issue · comments
Note: This issue is about misalignment that progresses with each line. For equally misaligned lines with Material 2, see #261
Steps to reproduce:
- Take the 02.code_field example as of 0f18b2b
- Add the following property to
MaterialApp
:
theme: ThemeData(
useMaterial3: true,
),
- Without that, numbers are either aligned or equally misaligned, as described in #261
- With that:
you can solve it by using parameter:
gutterStyle: const GutterStyle(textStyle: TextStyle(height: 1.5)),