-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line numbers do not align with lines #286
Comments
Adding a gutter style fixed it for me: CodeField(
gutterStyle: const GutterStyle(
textStyle: TextStyle(height: 1.5),
showLineNumbers: true,
),
controller: controller,
) Got this from: |
Quick Fix: Copy the library to your local project.
For more advance solutions you can define gutterPadding within the widget and pass it when you call CodeField Widget |
padding: EdgeInsets.only(top: 3) solved my issue |
See an example here:
The text was updated successfully, but these errors were encountered: